Here you go: <---------start--------> for /f "tokens=*" %%i in (names.txt) do call :go %%i goto EndOfBatch :go echo Members of Admin Group: >%1.txt local administrators \\%1 >> %1.txt echo. >> %1.txt echo Members of Power Users: >> %1.txt local "Power Users" \\%1 >> %1.txt :EndOfBatch <---------End-----------> Hope this helps. The computernames go into a file in the same directory as the script called names.txt. Glenn Sullivan, MCSE+I MCDBA David Clark Company Inc. -----Original Message----- From: Jason Benway [mailto:benwayj@xxxxxxxx] Sent: Friday, November 01, 2002 9:40 AM To: 'windows2000@xxxxxxxxxxxxx' Subject: [windows2000] OT: Batch file help I want to use the resource kit tool Local.exe to list the groups in the local administrators and power users groups. I would like to run a batch that will run local.exe on each computer name in a text file and write the output to a different text file. Can someone help? Thanks,jb ================================== To Unsubscribe, set digest or vacation mode or view archives use the below link. http://thethin.net/win2000list.cfm ================================== To Unsubscribe, set digest or vacation mode or view archives use the below link. http://thethin.net/win2000list.cfm