AppPoolIdentityType Metabase Property
Applies To: Windows Server 2003, Windows Server 2003 with SP1
The AppPoolIdentityType property allows application pools to run as LocalSystem, LocalService, NetworkService, or a specific user account. For the possible values to use in setting this property, see the Bitmask Values table below.
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_IDENTITY_TYPE |
Attributes |
INHERIT |
Default Value |
2 |
MetaFlagsEx |
CACHE_PROPERTY_MODIFIED |
User Type |
IIS_MD_UT_SERVER |
ID |
9021 |
Configurable Locations
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 |
/LM/W3SVC/AppPools |
IIsApplicationPools |
Bitmask Values
Constant | Value | Description |
---|---|---|
MD_APPPOOL_IDENTITY_TYPE_LOCALSYSTEM |
0x00000000 |
The application pool runs as LocalSystem. |
MD_APPPOOL_IDENTITY_TYPE_LOCALSERVICE |
0x00000001 |
The application pool runs as LocalService. |
MD_APPPOOL_IDENTITY_TYPE_NETWORKSERVICE |
0x00000002 |
The application pool runs as NetworkService. |
MD_APPPOOL_IDENTITY_TYPE_SPECIFICUSER |
0x00000003 |
The application pool runs as a specified user account. |
Remarks
MD_ACR_RESTRICTED_WRITE enables write access to the following properties:
Code Example
For general code examples, see Code Examples to Configure Metabase Properties.