Quick way to restart IIS web server using IISReset

Posted: (EET/GMT+2)

 

The IIS web server is very useful for running web applications, such as ASP.NET or ISAPI applications. But, to be able to replace running applications, you might need to stop and then start the IIS web server once again.

In Windows 2000, there's a new and easier way to do just that: the iisreset command line utility.

To restart all IIS services:

iisreset /restart

You can also stop or start services separately:

iisreset /stop
iisreset /start

By default, IISReset controls services like:

  • World Wide Web Publishing Service
  • IIS Admin Service
  • FTP Publishing Service
  • SMTP Service.

If a worker process or ISAPI extension becomes unresponsive, IISReset is often faster than rebooting the server. But remember that active web requests are interrupted during the restart.