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.