Rebooting a web server remotely using iisreset
This one surprised me a lot when we found it. You can reboot a computer that is running IIS remotely by running the command:
iisreset [computerName] /reboot
It's been very useful today when we've been patching a whole rack of servers with security patches, but could be very dangerous in the wrong hands :-)
There are a few more interesting options available. Do iisreset /? for more details.
Comments
Anonymous
February 17, 2006
You mean rebooting the machine itself or just the restarting the web server?Anonymous
February 17, 2006
wmic /node:servername os call reboot
more reliableAnonymous
March 02, 2006
Yes it actually reboots the machine itself
JohnAnonymous
May 21, 2012
ThanksAnonymous
August 07, 2012
what rights are needed?Anonymous
August 07, 2012
@dmilan - I am guessing, but I would assume (and hope) you'd need Administrator access