Mostly commonly encountered errors with WMI Service while discovering Windows Host and basic cross-checks to troubleshoot.
Errors Similar to -: "Connection failed to WMI service. Error: Permission denied".
Release or Environment
Madrid3 and later Versions
With new Windows Discovery method was implemented which uses PowerShell and the admin$ share folder on remote targets and customer who wants to revert back to legacy method and encounter similar issues. Kindly refer below article as well if you encounter issues even after this basic troubleshooting as well.
- Login to the MID Server with the Credentials used for discovering the <TargetMachine> and Click START and then select 'RUN' and enter WBEMTEST.EXE
- From the WBEMTEST utility, choose the CONNECT button and enter “\\<TargetIP>\root\cimv2” in the Namespace box.
- Click the CONNECT button to connect to the namespace. [Do not enter any credentials in the window]
- At the parent screen, click the QUERY button and then enter “SELECT * FROM WIN32_PROCESSOR” in the Enter Query box.
- If the Issue still persists with "WMI Access denied” error", then follow the below steps to Enable Remote WMI Access for a Domain User Account.
- Considering that this user account is already a member of the “Domain Users” group, you will have to allow remote WMI access by Click START and then select 'RUN' and enter 'Compmgmt.msc' or by launching "Server Manger" with Run as 'Administrator.
- You need to add the user account to the local group named “Performance Log Users”:
- Then allow a user to have access via WMI Control Properties:
- Open the WMI Control console: Click Start, choose Run and type wmimgmt.msc, then click OK.
- In the console tree, right-click WMI Control and then click Properties.
- Click the Security tab.
- Select the “\Root\CIMV2” namespace to choose which user or group will have access, and then click on Security.
- In the Security dialog box, click Add.
- In the Select Users, Computers, or Groups dialog box, enter the name of the object (user or group) that you want to add, click OK and then choose Advanced.
- In the Advanced Security dialog box under Permissions, edit the permissions and check all 'Allow' boxes. Select Apply to “This namespace and subnamespaces”:
- Click OK all the way to close all the windows and perform a quick discovery to test the changes.