[英]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.