In this tutorial, we are going to learn on how to restart IIS in command prompt in Windows.
If you are using Windows 10, you can use the search bar input and enter CMD. If you are using an older version of Windows, you click the Start Menu and click Run menu. In the open box, you type cmd and click OK.
A command prompt windows will appear. Then type in the following command.
The option noforce means it will wait for a minute to stop all the services before restarting the IIS.
If you receive an access denied message. You need to run the command prompt as administrator.
You can do this by right click of the command prompt icon and run as Administrator.
Here is the screenshot if the IIS restart is successful.