Enumerate security group members and export into CSV-file using Powershell

Export security group members to a CSV file using Powershell:

Import-Module ActiveDirectory

Get-ADGroupMember -identity sec_group_name | select name | Export-csv C:\Temp\filename.csv -NoTypeInformation

If you just wat the username, use “select samaccountname”.

Btw RSAT needs to be installed.

Leave a Reply

Your email address will not be published. Required fields are marked *