Edit Application Properties (IIS 7)

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

After you add an application, you may have to change the application properties that you specified during creation. For example, you may have a problematic application that you want to isolate in a separate application pool or you may want to change the physical location of the application content on the Web server.

You can use the All Properties dialog box from the Applications page to change the following application properties:

  • Application pool

  • Enabled protocols

  • Logon method

  • Path password

  • Path user name

  • Physical path

  • Virtual path

Prerequisites

For information about the levels at which you can perform this procedure, and the modules, handlers, and permissions that are required for this procedure, see Applications Feature Requirements (IIS 7).

Exceptions to feature requirements

  • Only server administrators can add and edit applications.

To edit Web application properties

You can perform this procedure by using the user interface (UI), by running Appcmd.exe commands in a command-line window, by editing configuration files directly, or by writing WMI scripts.

User Interface

To use the UI

  1. Open IIS Manager. For information about opening IIS Manager, see Open IIS Manager (IIS 7).

  2. In the Connections pane, expand the Sites node and click to select the site in which your application runs.

  3. In the Actions pane, click View Applications.

  4. On the Applications feature page, select an application from the list and then click Advanced Settings in the Actions pane.

  5. On the Advanced Settings dialog box, update the application properties as you want and click OK.

Command Line

To change an application's properties, use the following syntax:

**appcmd set app /app.name:**string **/attribute:**value

The variable app.namestring is the virtual path application that you want to change. The variable attribute is the attribute that you want to change, and value is the value that you want the attribute to have.

For a list of attributes available for configuration, use the following syntax:

**appcmd set app /app.name:**string /?

For example, to enable the HTTP and HTTPS protocols for an application named marketing in a site named contoso, type the following at the command prompt, and then press ENTER:

appcmd set app /app.name:contoso/marketing /enabledProtocols:http,https

For more information about Appcmd.exe, see Appcmd.exe (IIS 7).

Configuration

The procedure in this topic affects the following configuration elements:

<application>

<virtualDirectory> element under <application>

For more information about IIS 7 configuration, see IIS 7.0: IIS Settings Schema on MSDN.

WMI

Use the following WMI classes, methods, or properties to perform this procedure:

  • Application class

  • ApplicationElementDefaults class

For more information about WMI and IIS, see Windows Management Instrumentation (WMI) in IIS 7. For more information about the classes, methods, or properties associated with this procedure, see the IIS WMI Provider Reference on the MSDN site.

See Also

Concepts

Managing Applications in IIS 7