IISRESET on Remote Machine

I posted this on my GeeksWithBlogs blog a while ago (3 years)...  I've gotten a few questions about it recently, so I figured I'd post it here and see if it's helpful.

Ever wondered how to reset IIS on a remote (local network) machine?

Pop open the command prompt, and type:

iisreset <machine_name>

That's all.

You must be an administrator of the remote machine (on the same domain) or have the same credentials as an administrator on the machine (not on the same domain) for this to work.

(HT)

1 Comment

  • If you aren't the administrator on the remote machine, you can "impersonate" that account pretty easily. Just open the command prompt and type:

    net use \\\ipc$ /user:

    You will be prompted for the password, enter it. Now on the command prompt you can type:

    iisreset

    and it should work.

    NOTE: this will only work if the IPC hidden share hasn't been removed on the remote machine.

Comments have been disabled for this content.