Export AD Members from a Group


Start by running: Import-Module activedirectory

This displays the SAMAccountNames of contents on the screen:
Get-ADGroupMember -Identity “GroupName” | SELECT name,samaccountname

Add this to export to a file:
| Export-Csv c:\FileName.txt

Chris Ainger's avatar

No comments yet... Be the first to leave a reply!

Leave a comment