简体   繁体   English

在本地管理员组中查找具有特定用户的计算机

[英]Find computers with a specific user in local admin group

I need to check if a specific domain user is a member of a local administrators group. 我需要检查特定的域用户是否是本地管理员组的成员。

I prefer to use Powershell, but the problem is that we are not allowing WinRM so I can't use PSRemoting, so I can't run Get-LocalGroupMember or something. 我更喜欢使用Powershell,但是问题是我们不允许WinRM,所以我不能使用PSRemoting,所以我不能运行Get-LocalGroupMember或其他东西。

Thanks alot for your help. 非常感谢你的帮助。

I recommend you to have a look on PowerView . 我建议您看看PowerView Get-NetLocalGroup queries the information via WinNT provider or on demand via WinAPI. Get-NetLocalGroup通过WinNT提供程序或通过WinAPI按需查询信息。

Refer to harmj0y's blog for more information. 有关更多信息,请参阅harmj0y的博客

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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