Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Export all groups from AD including members and select group and user DN

$
0
0

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



Viewing all articles
Browse latest Browse all 15028

Trending Articles