Share via


Web Deploy appPoolConfig Provider

Applies To: Windows Server 2008, Windows Server 2008 R2

appPoolConfig

The appPoolConfig provider synchronizes application pools.

Example

msdeploy -verb:sync -source:appPoolConfig -dest:appPoolConfig,computerName=Server2

The appPoolConfig provider returns IIS 7 application pools, or synchronizes them from an IIS 7 source server to an IIS 7 destination server. The provider can synchronize a single application pool or the whole application pool collection. 32–bit to 64–bit synchronization is supported; 64–bit to 32–bit synchronization is not supported. The appPoolConfig provider is not supported on IIS 6.0 or earlier versions.

If the name of an application pool is specified, only configuration information for the specified application pool is returned. If no application pool is specified, the configuration information for all the application pool collection is returned. The provider gathers the configuration information of the specified scope, including elements, attributes, and child elements. Inherited settings are not included.

In a dump operation, if you use the -xml operation setting, the configuration contents, including attributes, will be displayed in XML format; otherwise, only the application pool configuration paths will be returned.

In a sync operation, if an application pool that exists on the source does not exist on the destination server, the application pool will be created on the destination server. If the application pool already exists on the destination, the properties of the destination application pool will be updated with the properties from the source. If an application pool exists only on the destination server and not on the source server, the application pool on the destination server will be deleted.

Example usages

1) Display the default application pool configuration information in XML format.

msdeploy -verb:dump -source:appPoolConfig=DefaultAppPool -xml

2) Synchronize the application pool collection from a remote Web server source to a local Web server destination.

msdeploy -verb:sync -source:appPoolConfig,computerName=Server2 -dest:appPoolConfig

3) Display only the attributes for application pool defaults by using the -xml operation setting and skipping all application pools that have a name.

msdeploy -verb:dump -source:apppoolconfig -skip:objectName="add",attributes.name=".*" -xml