Solved

Error validating WMI connection:

Posted on 2013-11-14
1
677 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

707 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