How to reset IIS with the command Prompt

1 ) From the Start menu, click Run.
2 ) In the Open box, type cmd, and click OK.
3 ) At the command prompt, type iisreset /stop. IIS will attempt to stop
all services and will return confirmation once all services have been
stopped.

4 ) At the command prompt, type iisreset /start.

5 ) That’s it! IIS has been restarted.

Tips

Typing iisreset directly from the run command window will reset IIS.

iisreset /status will show the current status of IIS

iisreset /noforce will prevent the server from forcing close
applications and process. This can cause IIS to reset slower but is more
graceful.

-------------------End-----------------------------------

Resetting Internet Information Service (IIS)

Occasionally, Internet Information Services (IIS) will need to be
reset for such reasons such as resetting the web server, clearing all
current connections, and applying web site changes. This can be done
either directly through IIS, or from the Command Prompt. This article
will outline both methods. We will start with executing the
command directly through IIS.
Performing an IIS reset will not cause the loss of any of your site
data, but merely refresh the Windows Service which enables it to be
viewed over the Internet.

Once open, click on the Local Computer, then from the menu bar at the top click on Actions -> All Tasks -> Restart IIS.

By default, the option will be set to Restart Internet Services on (Computer Name). Leave this option as-is, and click OK.

You should now see
dialog box confirming that IIS is restarting. All sites hosted on the
server will be non-functional during the time IIS is restarting.
Depending on the number of sites hosted on the server, it can take
anywhere from 60 seconds (for 5-10 sites) to 30 minutes (50-100 sites).

Now we will examine how to perform an IIS reset from the Command Prompt.

Navigate to Start -> Run. Next to the field which says Run, type in CMD and click OK.

Once open, type 'iisreset', and press Enter.

You should receive a message that IIS has successfully stopped and started.