[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

Constant | Value | Description
MD_SERVER_STATE_STARTING | 0x00000001 | Server starting.
MD_SERVER_STATE_STARTED | 0x00000002 | Server started.
MD_SERVER_STATE_STOPPING | 0x00000003 | Server stopping.
MD_SERVER_STATE_STOPPED | 0x00000004 | Server stopped.
MD_SERVER_STATE_PAUSING | 0x00000005 | Server pausing.
MD_SERVER_STATE_PAUSED | 0x00000006 | Server paused.
MD_SERVER_STATE_CONTINUING | 0x00000007 | Server continuing.

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

Attribute Name | Attribute Value
Data Type | DWORD
Attributes | VOLATILE
Default Value | 4
MetaFlagsEx | CACHE_PROPERTY_CLEARED | WAS_NOTIFICATION
User Type | IIS_MD_UT_SERVER
StartingNumber |
EndingNumber | 0
ID | 1016

### Access Locations

This property is accessible at the following locations:

Metabase Path | IIS Admin Object Type
/LM/MSFTPSVC/Info/Templates/Public FTP Site | IIsFtpServer
/LM/NNTPSVC/1 | IIsNntpServer
/LM/W3SVC/1 | IIsWebServer
/LM/W3SVC/2 | IIsWebServer
/LM/W3SVC/Info/Templates/Public Web Site | IIsWebServer
/LM/W3SVC/Info/Templates/Secure Web Site | IIsWebServer

### 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 type | DWORD
User type | IIS_MD_UT_SERVER

© 1997-2001 Microsoft Corporation. All rights reserved.