Page

I.6.0- The IISRESET Utility and Switches

Created by Brendan Doss.
Last Updated by Brendan Doss.  

PublicCategorized as Appendix I.

Not yet tagged
<< I.5.6- VAR Tokens for the #echo DirectiveAppendixII.7.0- The NET STOP and NET START Commands >>

The IISRESET Utility and Switches

The iisreset.exe utility canbe used to manage the Web services running on any server providing that youhave the relevant permissions. It should be used in preference to the NET STOP and NET START commands, as itstops and starts the various integrated services in the correct sequence.

 

The syntax is iisreset [computer_name] /switch [ /switch ...]

 

Where the available switch values are:

 

Switch

Meaning

RESTART

Stop and then restart all Internet services running on the specified computer.

START

Start all Internet services running on the specified computer.

STOP

Stop all Internet services running on the specified computer.

REBOOT

Reboot the specified computer.

REBOOTONERROR

Reboot the specified computer if an error occurs when starting, stopping, or restarting Internet services.

NOFORCE

Do not force Internet services to terminate if attempting to stop them gracefully fails.

TIMEOUT:val

Set the timeout value in seconds for all the Internet services to stop. Default is 20 for RESTART, 60 for STOP, and zero for REBOOT. If the REBOOTONERROR switch is also specified the computer will reboot if the timeout period is exceeded.

STATUS

Displays the status of all Internet services.

ENABLE

Enables restarting of Internet Services on the local system.

DISABLE

Disables restarting of Internet Services on the local system.

 

This utility can be used in an CMD-type#echo SSI directive, providing that the page hasanonymous access removed and the user supplies details of a valid account thathas Administrator privileges on the targetserver. However, in this situation the REBOOT, START and RESTART optionswill not function correctly.

<< I.5.6- VAR Tokens for the #echo DirectiveAppendixII.7.0- The NET STOP and NET START Commands >>

Copyright © 2003 by Wiley Publishing, Inc.

Powered by Near-TimeTerms of Services | Privacy Policy | Security Policy |