Answer the question
In order to leave comments, you need to log in
How to export users from AD with the groups they belong to?
The idea is this. Unload users with the groups they belong to. Then throw in the table
OU | USER | GROUP
I just can't figure out how to do it.
dsquery user ou=users,ou=IRNU,ou=AO,dc=oms,dc=tn,dc=corp -limit 500 -name *> c:\users.txt
Displays users from the OU in which they are sitting.
dsquery group ou=groups,ou=XXX,ou=XXX,dc=XXX,dc=XXX,dc=corp -limit 500 | dsget group -members | dsget user -samid -c >> c:\groupmembers.txt
Error "The target class of the object does not match the one specified on the command line."
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question