The AppPoolState property value is used by applications to determine the state of an application pool. The possible states are listed below in the Bitmask Values table.
Important
Because this property is internally configured by IIS, you should consider it to be read-only. Do not configure this property.
| Attribute Name | Attribute Value |
XML Data Type | DWORD |
WMI Data Type | SINT32 |
ADSI Data Type | DWORD |
ABO Data Type | DWORD |
ABO Metabase Identifier | MD_APPPOOL_STATE |
Attributes | VOLATILE |
Default Value | null |
MetaFlagsEx | CACHE_PROPERTY_MODIFIED |
User Type | IIS_MD_UT_SERVER |
ID | 9027 |
You can configure this property at the following locations in the IIS metabase.
| Metabase Path | IIS Admin Object Type |
/LM/W3SVC/AppPools/DefaultAppPool /LM/W3SVC/AppPools/DefaultAppPool/application_pool_name | IIsApplicationPool |
| Constant | Value | Description |
MD_APPPOOL_STATE_STARTING | 0x00000001 | The application pool is starting. |
MD_APPPOOL_STATE_STARTED | 0x00000002 | The application pool has started. |
MD_APPPOOL_STATE_STOPPING | 0x00000003 | The application pool is stopping. |
MD_APPPOOL_STATE_STOPPED | 0x00000004 | The application pool has stopped. |
For general code examples, see Code Examples to Configure Metabase Properties.