Skip to content

How do I restart IIS via command prompt?

RDP on to the server

To restart IIS using the IISReset command-line utility

  1. From the Start menu, click Run.
  2. In the Open box, type cmd, and click OK.
  3. At the command prompt, type
iisreset /noforce
  1. IIS attempts to stop all services before restarting. The IISReset command-line utility waits up to one minute for all services to stop. If the services cannot be stopped within one minute, all IIS services are terminated, and IIS restarts.

Was this article helpful?

Related guides

MariaDB Pre Upgrade Steps

Support for MyISAM tables and MariaDB 10.6.x and below ends in June 2026 on AlmaLinux 8.Before we can upgrade your...