Wednesday, January 1, 2014

How to Restart IIS in command line

          Some time we need to restart the IIS to certain configuration changes take effect in the IIS server. There are different methods available to reset or restart the IIS. The below example will help you to restart IIS in command line.

How to restart IIS in command line:
          From the Start menu, click Run and type iisreset . This is the simplest method to restart the IIS. The below list will help you to do other works in IIS.

To restart IIS using the IIS Restart command-line utility
1. From the Start menu, click Run.
2. In the Open box, type cmd, and click OK.
3. At the command prompt, type iisreset , and press ENTER.
The below examples for other way of managing IIS
iisreset /stop – Stop the IIS services
iisreset /start – Start the IIS services
IISreset /restart - Stop and then restart all Internet services.
iisreset /status - will show the current status of IIS
iisreset /noforce - will prevent the server from forcing close applications and process. This can cause IIS to reset slower but is more graceful.
iisreset /disable - this command disables IIS and prevents all iisreset calls from executing
iisreset /enable - to re-enable the IIS Admin service
iisreset /REBOOT - Reboot the computer.
iisreset /REBOOTONERROR - Reboot the computer if an error occurs when starting, stopping, or restarting Internet services.
iisreset /NOFORCE - Do not forcefully terminate Internet services if attempting to stop them gracefully fails.