Output AD User information including all groups in Powershell

To get a user report including all of the groups that each user is a member of use:

Import-module activedirectory
Get-AdUser -Filter * -Properties * | select DisplayName, Title, Department, Manager, @{N=Groups’; E={$($_.Memberof)}} | Export-csv "c:\temp\UsersandGroups.csv" -nti 

Leave a Reply

Your email address will not be published. Required fields are marked *