简体   繁体   中英

WMI Access denied issue

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 problem. 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?

需要添加代码以指定impersonationLevel = impersontate,否则WMI不会提高信用的安全级别-即使它们是明确的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM