Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How to get an apppool with Get-Item in powershell?

$
0
0

I have try the following command but always receve an COM error.

PS E:\WebSites> Get-Item "IIS:\AppPools\Rhino.Trunk"

Get-Item : Cannot retrieve the dynamic parameters for the cmdlet. Unable to cast COM object of type
'Microsoft.IIs.PowerShell.Framework.AppHostQueryProcessor' to interface type
'Microsoft.IIs.PowerShell.Framework.IAppHostQueryProcessor'. This operation failed because the QueryInterface call on
the COM component for the interface with IID '{6E0E6BE3-71C1-4A66-800E-11B9CBA00EAB}' failed due to the following
error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
At line:1 char:1
+ Get-Item "IIS:\AppPools\Rhino.Trunk"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-Item], ParameterBindingException
    + FullyQualifiedErrorId : GetDynamicParametersException,Microsoft.PowerShell.Commands.GetItemCommand


Test Sign


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>