5

we using the below command to get the list of the site added in is:

%systemroot%\system32\inetsrv\AppCmd.exe list sites 

but the above command can not take a list of app pools related to the site.

I want a list of app pools. if a single command to viewing list of site and related app pool, really good.

2
  • Do you get any error running the command? E.g. something about insufficient permissions? Please edit the question and share full traceback (sanitized if necessary). Commented May 16, 2021 at 15:17
  • If you study some basic IIS concepts, then you can answer your own questions. docs.microsoft.com/en-us/iis/get-started/… Since application pools are associated with only applications, it is impossible to achieve what you wanted when querying sites. Similarly, physical paths are associated only with virtual directories. Commented May 16, 2021 at 16:09

2 Answers 2

8

below command, get the list of the application pools:

%systemroot%\system32\inetsrv\AppCmd.exe list apppool 
2

You can also do in powershell via Get-IISAppPool in the IISAdministration Module like this:

Import-Module IISAdministration Get-IISAppPool 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.