Microsoft Security | Active Directory Federation Services
Federated identity management using Active Directory Federation Services
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I need a complete list of members of a group in Active Directory, How do I export that?
Federated identity management using Active Directory Federation Services
AI answer
To export a list of group members in Active Directory, you can use the Get-ADGroupMember cmdlet in PowerShell. Here’s how you can do it:
Get-ADGroupMember -Identity "<GroupName>" | Select-Object Name, SamAccountName, UserPrincipalName | Export-Csv -Path "C:\path\to\your\file.csv" -NoTypeInformation
Replace <GroupName> with the name of your group and specify the path where you want to save the CSV file.Make sure you have the necessary permissions to run this cmdlet and access the group information.