Skip to content

Commit

Permalink
not sure if this matters, but maybe this helps with AccessDenied prob…
Browse files Browse the repository at this point in the history
…lems?
  • Loading branch information
kohsuke committed Nov 17, 2010
1 parent 30fb009 commit 2fa75e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Wmi.cs
Expand Up @@ -93,6 +93,9 @@ public class WmiRoot
public WmiRoot(string machineName)
{
ConnectionOptions options = new ConnectionOptions();
options.EnablePrivileges = true;
options.Impersonation = ImpersonationLevel.Impersonate;
options.Authentication = AuthenticationLevel.PacketPrivacy;

string path;

Expand Down

0 comments on commit 2fa75e7

Please sign in to comment.