|
Question : Export Member List from AD groups
|
|
I've seen that I can use:
net group YourGroupName /domain >SomeTextFile.txt
to export one groups members, but is there a similiar way to export a collection of groups without having to do it one by one, i.e. something like net group w* /domain >SomeTextFile.txt
|
Answer : Export Member List from AD groups
|
|
Greetings PeterErhard,
You can use for loop to traverse all groups like...
FOR /F "Skip=4 delims=*" %g IN ('Net Group') DO NET GROUP "%g" >>SomeTextFile.txt
Hope this helps!
|
|
|