Reset IIS on a Remote Server
A little tip I learned today.
By now a lot of people are aware of the command-line utility "iisreset", which can be used to stop, then restart all the IIS services on your PC. This command is really handy if you quickly need to restart IIS to get a web application working.
What I discovered today is that this utility takes a machine name as a parameter. So if you have IIS running on another machine, and you have administrative rights to that machine, you can drop to DOS on your workstation and type:
iisreset computername
... and IIS will get restarted on that remote server. Nice!
# Trackback from Jason Haley on 6/04/2006 8:05 PM
Comments
# mabster
29/04/2006 9:26 PM
Ok - this post (and this post only, for some reason) is getting spammed with comments, so I'm disabling comments just for it. Email me if you wanna let me know something about this post.
# TechGal
16/04/2009 9:16 PM
hey can u let me know how to programatically reset iis server from remote client
# mabster
16/04/2009 9:57 PM
I thought I just did.
# Steven
19/07/2011 6:52 PM
Genius, worked a treat cheers buddy :) you saved me some time thinking of a way to do it :)