List users in group

  • Thread starter Thread starter Adam
  • Start date Start date
A

Adam

Hello all

Is there a way i can list all users in all groups without having to go into
each group.

Thanks in advance
 
Jerold Schulman said:
Great thanks but not exactly what i was looking for. I would like to query
AD then export the results to a file is that possible anyone?

Thanks
It is querying AD (using the net command).
To do what you want, modify tip 7451 in the 'Tips & Tricks' at
http://www.jsiinc.com

Just change the following one wrapped line from

if /i "%%d" EQU "no " for /f "Tokens=*" %%m in ('dsget group %%g
-members') do (

to

for /f "Tokens=*" %%m in ('dsget group %%g -members') do (



Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
Back
Top