Solved

Error validating WMI connection:

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Help 27 45
sql query to calculate avaerage 21 41
How to construct an if else statement from existing code 6 21
transaction in asp.net, sql server 6 33
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

803 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