Hi All,
I need help writing a powershell script that will export a list of all groups listed in the MemberOf property of a specific group to csv or txt.
I messed around a bit and tried the following command:
Get-ADGroup -identity GroupName -Properties * | Select-Object -Property memberof | expport-csv -path C:\list.csv
I open the csv file and do not see any groups. I am not really sure if this is the best approach to achieve my desired results. Any help or direction on what I should be doing is appreciated!
Thanks!
Justin