Hi Sharath,
Check following script if this works for you!
:: SCRIPT START
@ECHO OFF
SETLOCAL EnableDelayedExpansion
IF EXIST GroupMembers.txt DEL /F /Q GroupMembers.txt
SET DrawLine=-----------------
SET Qry=DSQuery * -Filter "(&(authOrig=*)(objectCate
ECHO !DrawLine! >>GroupMembers.txt
FOR /F "delims=*" %%g IN ('%Qry%') DO (
ECHO Querying: %%g
ECHO Members Of: %%g >>GroupMembers.txt
DSQuery * -Filter "(samAccountName=%%g)" -Attr authOrig -L >>GroupMembers.txt
ECHO !DrawLine! >>GroupMembers.txt)
ECHO.&ECHO Script Complete. Check 'GroupMembers.txt' file.
ENDLOCAL
:: *** SCRIPT END ***
Main Topics
Browse All Topics





by: harris_cPosted on 2007-10-02 at 22:50:32ID: 20004206
Use LDIFDE
com/window sserver/en /library/ 3 2872283-37 22-4d9b-92 5a-82c516a 1ca141033. mspx?mfr=t rue
http://technet2.microsoft.