mirror of https://github.com/winsw/winsw
not sure if this matters, but maybe this helps with AccessDenied problems?
parent
30fb009f66
commit
2fa75e700f
3
Wmi.cs
3
Wmi.cs
|
@ -93,6 +93,9 @@ namespace WMI
|
|||
public WmiRoot(string machineName)
|
||||
{
|
||||
ConnectionOptions options = new ConnectionOptions();
|
||||
options.EnablePrivileges = true;
|
||||
options.Impersonation = ImpersonationLevel.Impersonate;
|
||||
options.Authentication = AuthenticationLevel.PacketPrivacy;
|
||||
|
||||
string path;
|
||||
|
||||
|
|
Loading…
Reference in New Issue