C# .NET - WMI Query access denied

Asked By swetha Patibandla on 20-Jul-10 02:53 AM

I have the following code -

string machine = "ServerName1";

ConnectionOptions co = new ConnectionOptions();

co.Impersonation = ImpersonationLevel.Impersonate;

co.EnablePrivileges = true;

co.Authentication = AuthenticationLevel.Connect;

ManagementScope scope = new ManagementScope("\\\\" + machine +

"\\root\\cimv2", co);

scope.Connect();


Its working for my Local machine, but not on network. What should I do to connect to othermachines to read Share information?

If I open ServerName1 from my windows explorer I can open it which says I have permissions in it.

srinivas k replied to swetha Patibandla on 18-Nov-11 05:40 AM
am having the same issue. Find out a way to overcome it..??
Please help me