Powershell Group Members

It can often be useful to be able to pull all the members of an Active Directory group and have them in a CSV file that can be easily read in Excel.

The following command can get that done:

Get-ADGroupMember -Identity "Sales Employees" | select name | Export-Csv -path C:\temp\groupmembers.csv -NoTypeInformation

Just be sure to replace "Sales Employees" with the correct group name.