This property presents the current state of the server instance. The states, and the corresponding state codes, are as follows: 1 (starting), 2 (started), 3 (stopping), 4 (stopped), 5 (pausing), 6 (paused), or 7 (continuing).
This property is read-only.
| Data type | Long | 
| Default value | Not set | 
| Inheritance | Inheritable | 
This property is accessible at the following locations:
| Metabase Path | Key Type | 
| /LM/MSFTPSVC/N | IIsFtpServer | 
| /LM/W3SVC/N | IIsWebServer | 
The following table lists additional information required only for code that uses the IIS Admin Base Object.
| Metabase identifier | MD_SERVER_STATE | 
| User type | IIS_MD_UT_SERVER | 
| 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. | 
To send commands to the server, when working with the IIS Admin Base Object, use the MD_SERVER_COMMAND property.