Using ASP to implement switch IIS does not reboot the computer

Source: Internet
Author: User
Tags command line iis

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.