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
Continue reading