get-aduser group membership
-
Thursday, July 26, 2012 8:20 PM
Hi,
I want to use the get-aduser cmdlet to return all nested groups that a user belongs to.
I've tried :
(GET-ADUSER –Identity User1 –Properties MemberOf | Select-Object MemberOf).MemberOf
However this doesn't seem to return the nested groups :
Is there any way to do this with get-aduser (note - I can't use the quest get-qaduser function)
Thanks
Bill
All Replies
-
Friday, July 27, 2012 5:20 AM
There are many scripts in the repository that will do that. See if you can find anyting here:
http://gallery.technet.microsoft.com/scriptcenter
Grant Ward, a.k.a. Bigteddy
-
Friday, July 27, 2012 9:10 PMThanks - I had a look but none can do it powershell, only vb script
-
Monday, July 30, 2012 7:24 AMModerator
Hi,
A similar thread for you:
Get-ADUser not returning MemberOf for some users
http://social.technet.microsoft.com/Forums/en/ITCG/thread/271ff50a-4b89-472f-a1f6-dc312202b591
Regards
Yan Li
TechNet Community Support
- Marked As Answer by Yan Li_Microsoft Contingent Staff, Moderator Friday, August 03, 2012 2:57 AM

