Advertisement
Guest User

Untitled

a guest
Jun 6th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. string FullComputerPathName=@"\mycomputerrootcimv2";
  2.  
  3. ConnectionOptions options = new ConnectionOptions();
  4. options.Password = "some_password";
  5. options.Username = "some_user";
  6.  
  7. ManagementScope scope = new ManagementScope(FullComputerPathName,options);
  8. scope.Connect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement