Prerequisites
You must have access to Windows Server where OneIQ Pulse is installed.
You must have access to the Microsoft Windows endpoint.
Overview
The error message "Failed to connect to the WMI service" typically indicates that there was a problem establishing a connection with the Windows Management Instrumentation (WMI) service on a Windows-based system. WMI is a management infrastructure provided by Microsoft for performing administrative tasks on local and remote Windows systems.
Symptoms
If connectivity issues occur between OneIQ Pulse and a Microsoft Windows endpoint, the following error is displayed upon clicking the Details button:
There are several potential causes of the Failed to connect to the WMI service error.
WMI is not enabled
Remote Registry is not enabled.
Examples of the error
Unexpected error occurred when accessing Windows endpoint. Failed to connect to the WMI service. Ensure that WMI remote access is enabled and allowed through the firewall.
Failed to connect to the WMI service.
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Troubleshooting
Change Credentials: If you’re using a fully qualified domain name in your credentials, try changing it to a shortened domain name. For example, change from
company.com/username
tocompany/username
.Check WMI Service Status: On the Microsoft Windows endpoint, click on
Start
, thenRun
, and typeservices.msc
to open the Services window. In the Services window, look for theWindows Management Instrumentation
service in the right pane and confirm that the service is running. If it’s not, right-click on the service and selectStart
.Check Remote Registry Service: Still in the Services window, look for the
Remote Registry
service. This service allows remote registry manipulation and should be running for WMI to function correctly.Enable WMI Remote Access: WMI remote access should be enabled on the machine. You can check this by opening
Computer Management
, expandingServices and Applications
, right-clicking onWMI Control
and selectingProperties
. In theWMI Control Properties
window, go to theSecurity
tab, selectRoot
, and click onSecurity
. Ensure that the user or group that will be accessing WMI remotely has the necessary permissions.Check Firewall Settings: Ensure that WMI remote access is allowed through the firewall. You can do this by going to
Control Panel
>System and Security
>Windows Defender Firewall
>Allow an app through Windows Firewall
. Look forWindows Management Instrumentation (WMI)
and make sure it’s allowed.
If the above-mentioned measures do not help, you can isolate the WMI remote connection issue by downloading and running the PowerShell script. You can obtain the PowerShell script by contacting OneIQ Support.