如何使用 wmi 终止不在管理员组中的远程进程?
使用 c# 中的 wmi 远程终止 Windows 计算机上的进程所需的最低权限级别是多少?
目前,我正在使用目标计算机上管理员组中的帐户来终止进程并停止/启动 Windows 服务,但这会导致问题,因为在管理员组中还允许用户通过远程桌面登录到目标计算机,并且我不想要这样。我在这里有什么选择?
您可以拥有一个具有所有管理员权限但没有远程桌面权限的 Windows 组吗?
What is the least level of privilege required for remotely killing a process on a Windows machine using wmi from c#?
Currently, I am using an account in the administrators group on the target machine to kill the processes and stop/start windows services but this is causing issues because being in the administrator group also allows users to log on to the target machine via Remote Desktop and I don't want that. What are my options here?
Can you have a windows group with all the administrator privileges without the Remote Desktop privilege?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于问题的第一部分:要终止进程(无论是本地还是远程),您需要是该进程的所有者(即最初执行该进程的帐户)或管理员或系统。
至于最后一个有关远程桌面权限的问题,这是由组策略和/或本地安全策略控制的。在计算机配置\安全设置\本地策略\用户权限分配下查找“允许通过远程桌面服务登录”,默认情况下包含本地管理员和远程桌面用户组。 (还有一个“拒绝通过远程桌面服务登录”选项。)
To the first part of your question: to kill a process (whether locally or remotely) you need to either be the owner of the process (i.e. the account that originally executed it) or an administrator or SYSTEM.
As for the last question regarding Remote Desktop privileges, this is controlled by Group Policy and/or Local Security Policy. Look under Computer Configuration\Security Settings\Local Policy\User Rights Assignment for "Allow log on through Remote Desktop Services", which by default contains the local Administrators and Remote Desktop Users groups. (There's also a "Deny log on through Remote Desktop Services" options as well.)