Compartir a través de


ServerCommand Metabase Property

Applies To: Windows Server 2003, Windows Server 2003 with SP1

The ServerCommand property can be set to start, stop, continue, or pause a site. The commands, and the corresponding codes, are listed in the Bitmask Values table.

Attribute Name Attribute Value

XML Data Type

DWORD

WMI Data Type

SINT32

ADSI Data Type

DWORD

ABO Data Type

DWORD

ABO Metabase Identifier

MD_SERVER_COMMAND

Attributes

VOLATILE

Default Value

null

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

IIS_MD_UT_SERVER

ID

1012

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Metabase Path IIS Admin Object Type

/LM/W3SVC/n

IIsWebServer

/LM/MSFTPSVC/n

IIsFtpServer

/LM/MSFTPSVC

IIsFtpService

Bitmask Values

Value Description

1

Start site.

2

Stop site.

4

Pause site.

8

Continue site.

Code Example

For general code examples, see Code Examples to Configure Metabase Properties.