Saturday, March 30, 2013

Active Directory - Export Group Members to text file

Open Active Directory Module for Windows PowerShell in Administrative Tools and type the following command.



Get-ADGroupMember "<Group Name>" | Get-ADUser | Select-Object Name, mail | Export-Csv -Path "C:\Temp\Groupname.csv" –NoTypeInformation

No comments: