View a List of Sites on a Web Server (IIS 7)
Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista
IIS Manager provides a list of all sites on a Web server from which you can view important information, such as the site binding(s) or whether a site is started or stopped. You can also select a site from this list so that you can change site properties, such as the path of the site's root application, logging settings, limits, and bindings.
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 Sites Feature Requirements (IIS 7).
Exceptions to feature requirements
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.
In the Connections pane, click Sites in the tree.
View the list of sites or click a site in the list to modify site properties from the Actions pane.
To view a list of sites, type the following at the command prompt, and then press ENTER:
appcmd list site
To view a list of sites on the Web server that have a specific setting, you can filter the list results by including criteria on which to filter the results of the command. To do this, use the following syntax:
appcmd list site / attribute : value
The variables attribute and value are the criteria on which you want to filter the results. For example, you might have two sites that use the same binding, which prevents them from running at the same time. You can view a list of sites that use that binding by filtering the results. To return a list of results filtered by sites that use the HTTP protocol, and that listen for all IP addresses on port 80 without a host header, type the following at the command prompt, and then press ENTER:
appcmd list site /bindings:http/*:80:
For more information about Appcmd.exe, see Appcmd.exe (IIS 7).
The procedure in this topic affects the following configuration elements:
For more information about IIS 7 configuration, see IIS 7.0: IIS Settings Schema on MSDN.
Use the following WMI classes, methods, or properties to perform this procedure:
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.
ConceptsManaging Sites in IIS 7