AppPoolCommand Metabase Property

Applies To: Windows Server 2003, Windows Server 2003 with SP1

The AppPoolCommand property allows an application to send commands to the application pool to start or stop the application pool. Applications can read the value of the AppPoolState Metabase Property to determine if the application pool has responded to the command issued by the use of 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_COMMAND

Attributes

VOLATILE

Default Value

null

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

IIS_MD_UT_SERVER

ID

9026

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

Values

Constant Value Description

MD_APPPOOL_COMMAND_START

0x00000001

Starts the application pool.

MD_APPPOOL_COMMAND_STOP

0x00000002

Stops the application pool.

Code Example

For general code examples, see Code Examples to Configure Metabase Properties.