This is how you can export all members of an Active Directory group, together with some custom attributes like email address, homedirectory, office and check if their account are disabled in AD:
Get-QADGroupMember group -SizeLimit 0 | select email,homedirectory,office,AccountIsDisabled,name | Export-Csv C:\temp\exported_group.csv
The -SizeLimit 0
is inserted to remove the limit for results, so just use it in your commands.
Leave a Reply