MSMQ WMI Query Failing Due to Missing Performance Counters
问题 When trying to execute the following query from powershell: Get-WmiObject -query "Select * from Win32_PerfRawData_MSMQ_MSMQQueue" I receive the error: Get-WmiObject : Invalid query At line:1 char:14 + Get-WmiObject <<<< -query "Select * from Win32_PerfRawData_MSMQ_MSMQQueue" + CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand I have diagnosed this to the performance