0

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

1 Answer 1

0

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

8
  • I have tried the Cmd-let get-webapplication -site "Default Web Site", but it gave me an error
    – vikas
    May 21, 2016 at 14:14
  • Then i need more information. What operation system are you running? What version of IIS and powershell are you running? May 21, 2016 at 14:16
  • Did you load the IIS powershell module before usibg th command? Could you copy the error to this question? May 21, 2016 at 14:21
  • Microsoft Windows Server 2008 R2 Standard ,IIS 7.5 ,power shell Version : 2.0
    – vikas
    May 21, 2016 at 14:26
  • Get-WebConfiguration : Retrieving the COM class factory for component with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).At line:1 char:1 + Get-WebApplication -Site "Default Web Site" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-WebConfiguration], COMException + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.IIs.PowerShell.Provider.GetConfigu rationCommand
    – vikas
    May 21, 2016 at 14:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .