IIS Web Server Troubleshooting Command


You may restart IIS service when application becomes unavailable ,before certain configuration changes take effect OR while troubleshooting webserver first step you do is restart IIS service.

We will discuss few useful commands that are common in use.

Goto START--> RUN 

Type CMD--> Type following command

"iisreset /noforce /timeout:600"


iisreset : For start, stop, enable,disable IIS services safely 
Always use /NOFORCE while resetting IIS service.Timeout specifies time for command till how long to run.Noforce does not stop IIS service if normal stop attempt fails.
    /START     :Start all Internet services.
    /STOP       :Stop all Internet services.
    /REBOOT :  Reboot the computer.
    /REBOOTONERROR :Reboot the computer if an error occurs when starting,
                        stopping, or restarting Internet services.
    /TIMEOUT: Specify the timeout value ( in seconds ) to wait for
                        a successful stop of Internet services. On expiration
                        of this timeout the computer can be rebooted if
                        the /REBOOTONERROR parameter is specified.
                        The default value is 20s for restart, 60s for stop,
                        and 0s for reboot.
     /STATUS  :Display the status of all Internet services.
    /ENABLE  :Enable restarting of Internet Services on the local system.
    /DISABLE :Disable restarting of Internet Services on the local system.


Stop a Virtual Site Without Interrupting the Entire Web Service
To stop a virtual site without interrupting the entire Web service, type the following command from a command prompt:
adsutil STOP_SERVER W3SVC/Server#

In this example, for W3SVC/Server#, you could type W3SVC/1 for the default server, or W3SVC/2 for a non-default server.

Start a Virtual Site Without Interrupting the Entire Web Service
To start a virtual site without interrupting the entire Web service, type the following command from a command prompt:
adsutil START_SERVER W3SVC/Server#

In this example, for W3SVC/Server#, you could type W3SVC/1 for the default server, or W3SVC/2 for a non-default server.

Find Version of IIS :
Goto START-->RUN-->
Type Inetmgr then OK
This will get U to Internet Information Services Management Console, Now goto Help-->About Internet Information Services
popup window displays all info about IIS OR right side pane itself shows version of IIS.

0 comments:

Post a Comment