How to restart IIS?
What does iisreset do?
If you have any of the above questions, then here is the answer for that.
To restart your Windows web server or IIS, go to Start --> Run and type iisreset then press enter.
What does iisreset do?
iisreset Stops the IIS (Entire Web Server) and then Restarts it.
You can also use iisreset in command prompt. Below is the syntax for the same.
iisreset [computer name] [/option] [/option]
The default command, ie iisreset stops and restarts the web server.
iisreset supports the following command-line parameters:
/RESTART
This option stops, and then restarts all running Internet services.
/START
This will start all Internet services that are set to autostart.
/STOP
This will stop all running Internet services.
/REBOOT
This parameter will restart the computer.
/REBOOTONERROR
This restarts the computer only when an error occurs when trying to start, stop, or restart the Internet services.
/NOFORCE
Do not shut down Internet services on failure to stop them gracefully.
/TIMEOUT:val
This allows you to specify the timeout value in seconds waiting for a successful stop of Internet services. On expiration of this timeout, the computer can be restarted if the /REBOOTONERROR parameter is specified. The default value is 20 seconds for restart, 60 seconds for stop.
/STATUS
This displays the status of all Internet services.
/ENABLE
This enables the Restart API for Internet services.
/DISABLE
This will disable the Restart API for Internet services.
No comments:
Post a Comment
Please give your feedback, questions and suggestions. I will surely answer you.