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 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.
精彩评论