With IIS, you can stop and restart your computer when applications misbehave or become unavailable. Because several Internet services run in one process, Internet services shut down and restart differently from other Windows services, you should use the IIS snap-in and not the Computer Management Services snap-in to restart your Internet services. Using Reliable Restart, IIS automatically restarts when applications become defective. If you do not want IIS to restart automatically, see To disable Reliable Restart below.
To restart IISNote You also have the option to Start Internet Services, Stop Internet Services, or Reboot the computer. To stop Internet services, you must disable Reliable Restart.
Reliable Restart automatically restarts your Internet services if the Inetinfo.exe process terminates abnormally or if you use Windows Task Manager or Kill.exe to stop Internet services. Reliable Restart is enabled by default. You must disable Reliable Restart to restrict this automatic restart feature.
You can also restart IIS and disable Reliable Restart using the command prompt and Iisreset.exe. See the following command-line usage and parameters.
| 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. |
Related Topics
For information on starting and stopping individual Web and FTP sites, see Starting and Stopping Sites.