[This is preliminary documentation and subject to change]

ServerState

This property presents the current state of the server instance. The states, and the corresponding state codes, are listed in the Bitmask values table below.

Bitmask values

ConstantValueDescription
MD_SERVER_STATE_STARTING0x00000001Server starting.
MD_SERVER_STATE_STARTED0x00000002Server started.
MD_SERVER_STATE_STOPPING0x00000003Server stopping.
MD_SERVER_STATE_STOPPED0x00000004Server stopped.
MD_SERVER_STATE_PAUSING0x00000005Server pausing.
MD_SERVER_STATE_PAUSED0x00000006Server paused.
MD_SERVER_STATE_CONTINUING0x00000007Server continuing.

note Note    To send commands to the server, when working with the IIS Admin Base Object, use the MD_SERVER_COMMAND property.

Attribute NameAttribute Value
Data TypeDWORD
AttributesVOLATILE
Default Value4
MetaFlagsExCACHE_PROPERTY_CLEARED | WAS_NOTIFICATION
User TypeIIS_MD_UT_SERVER
StartingNumber
EndingNumber0
ID1016

Access Locations

This property is accessible at the following locations:

Metabase PathIIS Admin Object Type
/LM/MSFTPSVC/Info/Templates/Public FTP SiteIIsFtpServer
/LM/NNTPSVC/1IIsNntpServer
/LM/W3SVC/1IIsWebServer
/LM/W3SVC/2IIsWebServer
/LM/W3SVC/Info/Templates/Public Web SiteIIsWebServer
/LM/W3SVC/Info/Templates/Secure Web SiteIIsWebServer

IIS Admin Base Object Information

The following table lists additional information required only for code that uses the IIS Admin Base Object.

Metabase identifier
MD_SERVER_STATE
Data typeDWORD
User typeIIS_MD_UT_SERVER

© 1997-2001 Microsoft Corporation. All rights reserved.