Solved

Error validating WMI connection:

Posted on 2013-11-14
1
671 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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
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…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

732 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