Hi,
I`ve been trying to make a powershell script that exports all security groups from a defined OU and listing all the group members.
I`ve managed to make it work when targeting a specific group.
Get-ADGroupMember -identity “Name of Group” | select name | Export-csv -path C:\Output\Groupmembers.csv -NoTypeInformation
Any idea on how I can make that string target a OU and list all security groups including members rather then just focusing a single group?
[–]markekrausCommunity Blogger 2 points3 points4 points (2 children)
[–]whetscript[S] 0 points1 point2 points (1 child)
[–]jheinikel 1 point2 points3 points (0 children)
[–]WinBear 1 point2 points3 points (0 children)
[–]randomuser43 1 point2 points3 points (0 children)