Iis – Command to display on which application pool the specific website is running

iis

is there any command where we can get to know about a particular website (IIS server) on which application pool is it running .

For Example :
if I wanted to know about what app pool does the "defaultwebsite" is running which command helps me to get the desired result .

please help me on this.

Regards,
Vikas Chandra.C

Best Answer

You could run the powershell cmd-letGet-WebApplication -Site "Default Web Site", assuming that it is IIS 7.

https://technet.microsoft.com/en-us/library/ee790554.aspx

IIS 7 powershell commands https://technet.microsoft.com/en-us/library/ee790599.aspx