Tuesday 18 February 2014

Batch files to stop and start IIS

Copy below commands to notepad and save as "IISStop.bat"

iisreset /stop
pause

Copy below commands to notepad and save as "IISStart.bat"

iisreset /start
pause

Double click on the file to run it. But you may get below error.

"Access denied, you must be an administrator of the remote computer to use this command. Either have your account added to the administrator local group of the remote computer or to the domain administrator global group."

In this case right click on the file and choose "Run as administrator".

No comments:

Post a Comment