IISReset to remote server fails

iiswindows 7windows-server-2003

I'm attempting to run iisreset 192.168.100.182 (against a Windows Server 2003 machine) from another machine on the same domain (running Windows 7 Professional) and am receiving the following error message:

Attempting stop…

Restart attempt failed. Access denied, you must be an
administrator of the remote computer
to use this command. Either have your
account added to the administrator
local group of the remote computer or
to the domain administrator global
group.

I'm running the command from an elevated command prompt with my domain account added to the Administrators group on the target machine. I've attempted this when being a member of the administrators group both directly and by virtue of membership of a domain group that's a member of the administrators group.

I've reviewed the event log on the target machine and it shows a selection of Success Audits for my domain credentials immediately after attempting the iisreset, but no failure audits.

Best Answer

I would recommend using psexec to do this. http://technet.microsoft.com/en-us/sysinternals/bb897553

Also check the local security policy for the remote machine, you may only be logging success events and not failures.

secpol.msc -> Local Policies -> Audit Policy.

Audit Logon Events should be set to Success and Failure to see the Fails in the event log.

Related Topic