Solved

Error validating WMI connection:

Posted on 2013-11-14
1
661 Views
Last Modified: 2014-01-08
Hello All,

I am trying to connect via "Collect Operating System metrics using direct WMI" to my SQLtest server (which is behind a firewall) via my Idera SQLdm monitoring application.  
I first followed the following instructions to open a fixed port for WMI.

Setting Up a Fixed Port for WMI  

At the command prompt, type winmgmt -standalonehost
Stop the WMI service by typing the command net stop "Windows Management Instrumentation"
Restart the WMI service again in a new service host by typing net start "Windows Management Instrumentation"
Establish a new port number for the WMI service by typing netsh firewall add portopening TCP 24158 WMIFixedPort

I also followed these instructions to give the account that I am using the correct permissions.

WMI Troubleshooting

Give the user Remote Launch and Remote Activation permissions in dcomcnfg. Right-click My Computer-> Properties Under COM Security, click "Edit Limits" for both sections. Give the user you want remote access, remote launch, and remote activation. Then go to DCOM Config, find "Windows Management Instrumentation", and give the user you want Remote Launch and Remote Activation. For more information, see Connecting Between Different Operating Systems

however I am still having a problem connecting, this is the error that I am getting.


===================================

The connection test failed.

===================================

Error validating WMI connection:

===================================

Access denied  (System.Management)

------------------------------
Program Location:

   at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
   at System.Management.ManagementScope.InitializeGuts(Object o)
   at System.Management.ManagementScope.Initialize()
   at System.Management.ManagementObjectSearcher.Initialize()
   at System.Management.ManagementObjectSearcher.Get()
   at Idera.SQLdm.CollectionService.Probes.Collectors..()
   at Idera.SQLdm.CollectionService.Probes.Collectors..()


Is there a way that I can test my connection via a windows or other third party app.
0
Comment
Question by:RayManAaa
1 Comment
 
LVL 35

Accepted Solution

by:
David Todd earned 500 total points
ID: 39650275
Hi,

Yes, I collect some WMI metrics via WMI from powershell. Its easy enough to write a simple powershell (or vbs) query to check that it all connects and isn't the application.

I've got one or two servers that have WMI issues, so instead of collecting their stats remotely from one server and pulling the data back, I push the data across and use the filesystem object instead of WMI.

HTH
  David
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question