[英]WMI Access denied issue
I am using C# & WMI to retrieve REMOTE COMPUTER services. 我正在使用C#和WMI检索远程计算机服务。 The connection is made using ConnectionOptions with username & password.
使用带有用户名和密码的ConnectionOptions进行连接。 Username has administrative privilege.
用户名具有管理权限。 I can query Win32_OperatingSystem OR Win32_LogicalDisk without any problem.
我可以毫无问题地查询Win32_OperatingSystem或Win32_LogicalDisk。 But when I query SELECT * FROM Win32_Service then I get Access Denied issue.
但是,当我查询SELECT * FROM Win32_Service时,出现访问被拒绝的问题。 I give permission to the user from CIMV2 namespace for remoteEnable, DCOM permission for Remote Access, Remote Lunch, Remote Activation.
我从CIMV2命名空间向用户授予了remoteEnable的权限,为远程访问,远程午餐,远程激活提供了DCOM权限。 But still having that issue.
但是仍然有这个问题。 Can anyone tell what else need to do?
谁能说出还有什么需要做的吗?
需要添加代码以指定impersonationLevel = impersontate,否则WMI不会提高信用的安全级别-即使它们是明确的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.