
Is there any way to get the list of the service from IIS manager which are hosted under a site, apart from going in the IIS manager and checking? Any command line option or any other way by which I can get the list?
*This post is locked for comments
I have the same question (0)Hi RNA,
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: