开发者

WMI Access denied issue

开发者 https://www.devze.com 2023-01-04 07:59 出处:网络
I am using C# & WMI to retrieve REMOTE COMPUTER services. The connection is made using ConnectionOptions with username & password. Username has administrative privilege. I can query Win32_Oper

I am using C# & WMI to retrieve REMOTE COMPUTER services. The connection is made using ConnectionOptions with username & password. Username has administrative privilege. I can query Win32_OperatingSystem OR Win32_LogicalDisk without any proble开发者_开发技巧m. But when I query SELECT * FROM Win32_Service then I get Access Denied issue. I give permission to the user from CIMV2 namespace for remoteEnable, DCOM permission for Remote Access, Remote Lunch, Remote Activation. But still having that issue. Can anyone tell what else need to do?


Need to add code to specify impersonationLevel=impersontate otherwise WMI doesn't raise the security level of the creds - even if they're explicit.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号