如何获得一个用户是其成员的所有组? [英] How to get all groups that a user is a member of?

查看:231
本文介绍了如何获得一个用户是其成员的所有组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PowerShell中的 GET-ADGroupMember cmdlet将返回一个特定的组的成员。是否有一个cmdlet或财产来获取所有特定用户是其成员的群体?

PowerShell's Get-ADGroupMember cmdlet returns members of a specific group. Is there a cmdlet or property to get all the groups that a particular user is a member of?

编辑:我定我的错误:获取会员 GET-ADGroupMember

推荐答案

获取组成员的用户:

$strUserName = "Primoz"
$strUser = get-qaduser -SamAccountName $strUserName
$strUser.memberof

<一个href="http://www.techtalkz.com/microsoft-windows-powershell/417715-get-group-membership-user.html#post1668928" rel="nofollow">http://www.techtalkz.com/microsoft-windows-powershell/417715-get-group-membership-user.html#post1668928

但也看到任务的免费PowerShell命令为Active Directory

这篇关于如何获得一个用户是其成员的所有组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆