Problems with WMI remote access service management
Hello Everyone,
I am trying to stop a remote service using WMI however I am having some problems. I get false information back from the server, if the service is running it gives the state information as stopped. Here is my code:
ConnectionOptions op = new ConnectionOptions();
op.Username = username;
op.Password = password;
op.Impersonation = ImpersonationLevel.Impersonate;
ManagementScope scope = new ManagementScope("\\\\128.1.1.254\\root\\CIMV2", op);
try
{
scope.Connect();
Bookmarks