Powershell Script to export group membership to multiple CSV

Freddie 21 Reputation points
2022-11-14T11:21:54.807+00:00

Currently I have developed a script that exports single group membership to CSV. My requirement is script should take multiple group names from input csv and export membership to multiple output csv based on group name. For an example input file contains 3 groups i.e Group1, Group2, And Group3. Script should generate 3 csv files, 1 for each groups membership.

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andreas Baumgarten 123.5K Reputation points MVP Volunteer Moderator
    2022-11-14T12:30:13.587+00:00

    Hi @Freddie ,

    maybe this helps to get started: https://learn.microsoft.com/en-us/answers/questions/980667/export-ad-group.html

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten


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.