[This is preliminary documentation and subject to change]

# Stop Server (stopsrv)

Summary:

This stops a list of servers.

Usage:

stopsrv | <--ADSPath|-a ServerInstance/X[,ServerInstance/Y,ServerInstance/Z...]> [--computer|-c COMPUTER1[,COMPUTER2...]] [--verbose|-v] [--help|-?]

Parameters:

-a ServerInstance/X | The instance of the Web server or FTP server. This is usually w3svc/X or msftpsvc/X where X is the ordinal of the server instance. On a default installation of IIS, w3svc/1 refers to the Default Web Site which is mapped to the Inetpub\Wwwroot folder on your system drive.
-Computer | Comma-separated list of computers. For example -c Machine1,Machine2,Machine3. This assumes that the specified path exists on all specified computers. If no computer is specified, LocalHost is assumed.
-verbose | Print status information during processing.
-h | Return help on this command.

Examples:

Example 1: stopsrv -a w3svc/1,msftpsvc/2

Example 2: stopsrv -c MACHINE1,MACHINE2,MACHINE3 -a w3svc/1,msftpsvc/2

© 1997-2001 Microsoft Corporation. All rights reserved.