Sometimes we accidentally use a dead loop in a Web program such as ASP, or when we test a DLL component, hang up. This is when IIS stops responding, and we're going to continue our work and restart the IIS service.
However, the process is still running and Internet Service Manager is not closed. And when you want to end Inetinfo.exe or Dllhost. EXE process, we get a rejection of the information, of course, you are administrator rights or get this hint. You may also use net stop, but it takes a long time and sometimes does not respond.
Then we have to reboot the computer. Can you restart IIS without restarting your computer?
Of course, Microsoft installs IIS while installing a tool called IISReset, which you can find in Winnt\System32, which can be used as a command line with Ping. It has multiple parameters, and here are a few important, as well as the pertinent parameters of our article:
Start IIS after/restart stops
/start Start IIS (if stopped)
/stop Stop IIS (if started)
/reboot Reboot the computer
/rebootonerror Restart the computer if IIS fails to stop
/noforce do not force IIS to stop
/timeout:x after X seconds, IIS is forced to stop unless the/noforce parameter is given. If/rebootonerror gives it, it restarts the computer.