Partilhar via


Working With Attributes and Values in Appcmd.exe (IIS 7)

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista

Specify values for attributes when you want to limit the results of a list command, or when you want to change the value of an attribute for an Appcmd.exe object.

For example, to list application pools configured to use Network Service, type the following command at the command prompt, and then press ENTER:

appcmd list apppool /processModel.identityType:NetworkService

Alternatively, to configure an application pool named Marketing to use Network Service, type the following command at the command prompt, and then press ENTER:

appcmd set apppool /apppool.name:Marketing /processModel.identityType:NetworkService

The processModel.identityType attribute is used in both of the previous examples. In the first example, the attribute limits the query results by listing only application pools that are configured to use Network Service. In the second example, the attribute specifies that the Marketing application pool use the Network Service identity.

Errors and the AppHostConfig Attribute

In Windows 8 and Windows Server 2012, the AppHostConfig attribute was added. The AppHostConfig attribute enables you to edit an AppHost configuration file that is not the default AppHost configuration file. Although this attribute is useful in many situations, invalid values are ignored under the following verb/object combinations:

Verb Object

Start or Stop

Site

Start, Stop, or Recycle

AppPool

All verbs

Backup

All verbs

Request

All verbs

WP

See Also

Concepts

Appcmd.exe (IIS 7)