Solved

Error validating WMI connection:

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
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.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now