How to Restart IIS using command line
How to Restart IIS using command line
- 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”. - Stop IIS
To stop IIS on command line, open terminal and type:
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. - Start IIS
To start IIS, you will need to enter the following command in the Command Prompt: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. - Restart IIS
You can restart IIS with a single command using the following: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. - To ensure that IIS is running correctly, you can check its status by entering the following command in the Command Prompt:
This command will display the current status of all IIS services.