598 views

Resolving failure to run commands on Windows Servers during discovery in Service Mapping 

 

Problem
In some cases Service Mapping may be able to connect to Windows Management Instrumentation (WMI), but fails to run all or specific commands such as netstat.
 
Symptom
  • The business service map displays the warning icon (Warning icon) on top or instead of the Windows Server.
  • The following error message displays for the Windows Server: 
    Failed to execute WMI command on host

Possible Cause 1


The Administrators group on the Windows Server has reduced DCOM rights compared to the default Windows installation.

Resolution 1
Perform the following steps:
  1. In the command line shell, enter exe.
  2. In the Component Services window, navigate to Component Services > Computers.
  3. Right-click on My Computer and select Properties.
  4. Click the COM Security
  5. Click Edit Limits.
  6. In the Access Permission window, click Add.
  7. In the Select Users or Groups widow, enter Distributed COM Users and click OK.
  8. In the Access Permission window, select Distributed COM Users and verify that the following permissions are allowed:
    • Local Launch
    • Remote Launch
    • Local Activation
    • Remote Activation
 
Possible Cause 2
Appropriate security policies are not configured correctly for the Service Mapping user or the group to which this user belongs.
 
Resolution 2
Perform the following steps:
  1. On the Windows Server that you discover, click Start > Run and enter secpol.msc.
  2. In the Local Security Policy window, navigate to Security Settings > Local Policies > User Rights Assignment.
  3. Right-click My computer and select Properties.
  4. Right-click relevant policies and check the Service Mapping user configured for them. If necessary, click Add User or Group and add the Service Mapping user to this policy. Perform this for the following policies:
    • Debug Programs
    • Restore Files and Directories
    • Logon as batch job
    • Logon as service

 

 

Possible Cause 3
The Service Mapping user is not allowed to access the administrative share drive C$.
 
Resolution 3
Perform the following:
  • Configure the target host to allow the user to access the administrative share drive C$.

Or

  • On the firewall, allow the relevant MID server access to the target host on port 8585.
       
Possible Cause 4
The administrative share is not available for the current user.
 
Resolution 4
Verify that the administrative share is not available for the current user and if so, fix the problem:
  1. On the MID Server, open the command line window.
  2. Run the following command: net use \\ip_address\C$ /USER:domain\user password.
  3. Check that the command competes successfully. If it does, run the following command: net use \\ip_address\C$ /DELETE to clear this connection.
  4. If there the net use \\ip_address\C$ /USER:domain\user password command fails, allow access to the administrative share on the host.

 

 

 

   

Article Information

Last Updated:2017-07-04 06:29:31
Published:2016-02-29