Printing/downloading all members of an active directory group

Mark Steben 20 Reputation points
2023-01-20T19:16:34.65+00:00

I wish to place all members of an AD group into a devops REPO for the purpose of tracking additions and deletions.

Is there a way to download all members into a pdf or another structure that I can paste into a repository?

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
0 comments No comments
{count} votes

Accepted answer
  1. Thameur-BOURBITA 36,266 Reputation points Moderator
    2023-01-21T09:50:58.26+00:00

    Hi,

    You can export members on CSV file using powershell command.

    Get-AdGroupMember -Identity 'groupName' | Get-AdUser -Properties * | Select Name,SamaccountName | Export-csv -Path D:\Powershell\memberslist.csv -NoTypeInformation

    Please don't forget to mark helpful answer as accepted

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.