Rebooting IIS
I hate going through all the steps to reboot IIS so I jotted this down I can do it in DOs and so can you…
Copied from commandline help
Usage:
iisreset [computername]
/RESTART - Stop and then restart all Internet services.
/START - Start all Internet services.
/STOP - Stop all Internet services.
/REBOOT - Reboot the computer.
/REBOOTONERROR - Reboot the computer if an error occurs when starting, stopping, or restarting Internet services.
/NOFORCE - Do not forcefully terminate Internet services if attempting to stop them gracefully fails.
/TIMEOUT:val - Specify the timeout value ( in seconds ) to wait for a successful stop of Internet services. On expiration of this timeout the computer can be rebooted if the /REBOOTONERROR parameter is specified. The default value is 20s for restart, 60s for stop, and 0s for reboot.
/STATUS - Display the status of all Internet services.
/ENABLE - Enable restarting of Internet Services on the local system.
/DISABLE - Disable restarting of Internet Services on the local system.
End of Help
- Omit computername if on localhost
If all this does not get you able to restart/reboot local services, then it may be time to reinstall fresh installation of your targeted framework. check out this article to walk you through removing fragmented Frameworks wiping your slate for a clean install.
Digg it | Save to del.icio.us | Netscape | Reddit | Stumble It!
- - - - - S P O N S O R I N G A D V E R T I S M E N T - - - - -