This property allows an application to give the server commands to stop, start, pause, or continue. Applications can test the property ServerState to determine if the server has responded to a command issued by use of the property MD_SERVER_COMMAND.
| Default value | Empty |
| Inheritance | Inheritable |
| Data type | DWORD |
| User type | IIS_MD_UT_SERVER |
This single property contains the following file access permission flags:
| Constant | Value | Description |
| MD_SERVER_COMMAND_START | 0x00000001 | Send start command. |
| MD_SERVER_COMMAND_STOP | 0x00000002 | Send stop command. |
| MD_SERVER_COMMAND_PAUSE | 0x00000003 | Send pause command. |
| MD_SERVER_COMMAND_CONTINUE | 0x00000004 | Send continue command. |
This property is available at the following metabase keys:
| Metabase Path | Key Type |
| /LM/MSFTPSVC/n | IIsFtpServer |
| /LM/W3SVC/n | IIsWebServer |
If the server encounters an error while changing states, the Win32Error property will be set to the appropriate failure code.