Hi all,
I'm trying to export all groups in AD, specifically the group DN and the user DN but I'm struggling to select the group DN:
get-adgroup -filter * | get-adgroupmember | select distinguishedname | export-csv c:\temp.csv -notypeinformation
I'm not sure where / how to put the select command in for the group DN...
Any help / pointers appreciated.
Thanks