【发布时间】:2014-04-25 11:59:43
【问题描述】:
我正在尝试获取有关 iis 请求的信息,但是当我尝试通过以下方式获取计数器性能时:
Get-WmiObject Win32_PerfRawData_ASP_ActiveServerPages
我收到以下错误:
Get-WmiObject : Invalid class
At line:1 char:21
+ $totob=Get-WmiObject <<<< Win32_PerfRawData_ASP_ActiveServerPages
+ CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException
+ FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
【问题讨论】:
标签: powershell performancecounter