The following scipt will parse the output of net user into a single column list of userids:
[tt]
@echo off
echo Processing user list, Please wait....
set LISTFILE=UserList.txt
if exist %LISTFILE% del %LISTFILE%
goto PROCESS
:FINISH
echo Processing Complete. Output is in the file [%LISTFILE%]
goto :EOF

ROCESS
for /f "Skip=6 Tokens=1,2,3" %%i in ('net user /domain') do call :CHECKEND %%i %%j %%k
goto :EOF
:CHECKEND
if "%1"=="The" goto :FINISH
echo %1 >> %LISTFILE%
if "%2" NEQ "" echo %2 >> %LISTFILE%
if "%3" NEQ "" echo %3 >> %LISTFILE%
[/tt]
This should work anywhere as it uses only NT native batch commands. [sig]<p> Jeff<br><a href=mailto: masterracker@hotmail.com> masterracker@hotmail.com</a><br><a href= > </a><br>If everything seems to be going well: you don't have enough information.......[/sig]