@goto :_beg Joins remote or local computer to a Windows NT domain. For assistance: Sean Blankenship :_beg @echo off if [%1]==[] ( set /p RHOST=Remote host: ) else ( set RHOST=%1 ) set RUSER=hsuseradmin set RPASS=adminINSTALL goto _main :_main call :_ipcbind 1 call :_restart call :_ipcbind 0 echo. echo.Press any key to exit... echo. > nul pause goto _end :_ipcbind if [%1]==[1] ( net use \\%RHOST%\ipc$ /user:%RHOST%\%RUSER% %RPASS% ) else if [%1]==[0] ( net use \\%RHOST%\ipc$ /del ) else ( goto :EOF ) goto :EOF :_restart echo Restarting %RHOST%... shutdown -r -f -m \\%RHOST% goto :EOF :_end set RHOST= set RUSER= set RPASS=