WMI Debug

If the WMI light in the AimBetter Configuration is red or stuck and you have made all the checks in the Installation Troubleshooting – WMI Status light is red, proceed with the following WMI Debugging process.

Windows PowerShell test for WMI

Open “Windows PowerShell” and choose the option “Run as a different user.”

You’ll need to enter the credentials of the Windows OS user created for the AimBetter agent. This user must have Windows OS Administrator privileges or minimal permissions – check how to create a Windows OS user with minimum required permissions.

Run the following script – (replace {computer name or ip} with the computer you want to check)

Get-WMiObject -Class Win32_PerfRawData_PerfOS_System -ComputerName {computername or ip}

If you got an error running the script check the following table to fix the error :

Message
The RPC Server is unavailable. (Exception from HRESULT: 0x800706BA) Click here
Access is denied. (Exception from HRESULT:0X8005(E_ACCESSDENIED)) Click Here
Invalid class. [0x80041010]Click here
Invalid query. [0x80041017]Click here

–Message: The RPC Server is unavailable

(Exception from HRESULT: 0x800706BA)

This error occurs for the following reasons:

1 – The firewall rule is disabled on the Remote Machine – Most Popular

Check that the “Windows Management Instrumentation (WMI-In)” rule is enabled in the firewall for the remote machine,

Or open CMD (command prompt program) as administrator on the remote machine and run the following script:

netsh advfirewall firewall set rule group="Windows Management Instrumentation (WMI)" new enable=yes

2 – DCOM is not enabled in the host PC or target PC or on both.

Check registry – Key: HKLM\Software\Microsoft\OLE, Name: EnableDCOM is set to Y

After finishing this step, go back to the Windows PowerShell test

–Message: Access is denied

(Exception from HRESULT:0X8005(E_ACCESSDENIED))

Check the following on The Remote Machine

  1. Check if the user to be used for monitoring is on Performance Monitor Users group at least.
  2. Under Services and Applications, bring up the properties dialog of WMI Control (or run wmimgmt.msc). In the Security tab, highlight ROOT, click Security; add Performance Monitor Users and enable the options : Enable Account and Remote Enable
  3. Click Start, click Run, type DCOMCNFG, and then click OK.
    • In the Component Services dialog box, expand Component Services, expand Computers, right-click My Computer, and click Properties.
    • In the My Computer Properties dialog box, click the COM Security tab.
    • Under Access Permissions and Launch and Activation Permissions, click Edit Limits.
    • Add Performance Monitor Users and allow remote access, remote launch, and remote activation.

After finishing this step, go back to the Windows PowerShell test

–Message: Invalid class or Invalid query

Exception [0x80041010] or [0x80041017]

This error occurs when there is some broken performance counter. The solution is to rebuild these counters through the following procedure.

Open CMD (command prompt program) as administrator, and run the following scripts:

Script 1

cd c:\windows\system32
     lodctr /R

Script 2

 cd c:\windows\sysWOW64
     lodctr /R

After finishing this step, go back to the Windows PowerShell test

Was this article helpful?