powershell - MSMQ WMI Query Failing Due to Missing Performance Counters -
when trying execute following query powershell:
get-wmiobject -query "select * win32_perfrawdata_msmq_msmqqueue"
i receive error:
get-wmiobject : invalid query @ line:1 char:14 + get-wmiobject <<<< -query "select * win32_perfrawdata_msmq_msmqqueue" + categoryinfo : invalidoperation: (:) [get-wmiobject], managementexception + fullyqualifiederrorid : getwmimanagementexception,microsoft.powershell.commands.getwmiobjectcommand
i have diagnosed performance counters msmq missing, when in registry under system\currentcontrolset\services\msmq\ not see performance key.
i found following microsoft kb on reloading performance counters steps in not work http://support.microsoft.com/default.aspx?scid=kb;en-us;936493. when run "unlodctr msmq" error:
unable open driver system\currentcontrolset\services\msmq\performance. status: 2
then when run "lodctr mqperf.ini" get:
unable find initialization file mqperf.ini
does know need reinitialize msmq performance counters?
Comments
Post a Comment