n3s0 || journal

Using The IISRESET Command To Reset IIS & Obtain Its Status

Posted on 2 mins

Sysadmin

Some brief notes on how to reset Internet Information Services (IIS) on Windows client/servers. Before executing the command(s). This operation will need to be performed with Administrator/elevated privileges.

Resetting or restarting the IIS service will

The default behavior for iisreset is the equivalent to the /restart switch.

iisreset

The following output can be expected from the command above.

Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted

Should the need arise for using the /restart switch. The following command can be used. This will have the same output.

iisreset /restart

The following command will start the IIS services.

iisreset /stop

This is the output for the command.

Attempting to stop...
Internet services successfully stopped

The following command will start the IIS service.

iisreset /start

This is the output for it.

Attempting to start...
Internet services successfully stopped

The following command will show us the status of the IIS services. This will show the status for the following services.

iisreset /status

The ideal output from this command can be found below.

Status for IIS Admin Service < IISADMIN > : Running
Status for Windows Process Activation Service < WAS > : Running
Status for World Wide Web Publishing Service < W3SVC > : Running