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