Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string FullComputerPathName=@"\mycomputerrootcimv2";
- ConnectionOptions options = new ConnectionOptions();
- options.Password = "some_password";
- options.Username = "some_user";
- ManagementScope scope = new ManagementScope(FullComputerPathName,options);
- scope.Connect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement