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
February 23, 2012 by Chris Ainger
0 Comments
No comments yet... Be the first to leave a reply!