How to Restart IIS using command line

 How to Restart IIS using command line

  1. Open Command Prompt
    To access the command line interface, you will need to open the Command Prompt. To do this, click the Windows Start button, search for “cmd”, and select the Command Prompt app from the search results OR click WIN + R and type  “cmd”.
  2. Stop IIS
    To stop IIS on command line, open terminal and type:
    iisreset /stop 


    Press WIN + R to open Run window. Type the same command on run window and press enter:



    This command will stop all running IIS services.
  3. Start IIS
    To start IIS, you will need to enter the following command in the Command Prompt:

    iisreset /start

    Press WIN + R to open Run window. Type the same command on run window and press enter:

    This command will start all IIS services that were stopped in the previous step.
  4. Restart IIS
    You can restart IIS with a single command using the following:
    iisreset /restart



    Press WIN + R to open Run window. Type the same command on run window and press enter:



    This command will both stop and start IIS services at the same time.
  5. To ensure that IIS is running correctly, you can check its status by entering the following command in the Command Prompt:
    iisreset /status
    This command will display the current status of all IIS services.

Popular Posts