@echo off ::Requires PsExec from SysInternals.com ::Pass Admin password as first parameter :: Set Admin Account Set AdmAcct=Administrator :: Patch Path Set PathToPatch=\\xxxxx\f$ for /f %%a in (PClist.txt) do call:Next %1 %%a goto:eof :Next net use \\%2\c$ "/user:%2\%AdmAcct%" %1 if not exist "\\%2\c$\documents and settings\" goto:NT if not exist \\%2\admin$\system32\schtasks.exe goto:W2K :XP copy %PathToPatch%\WindowsXP-KB912919-x86-ENU.EXE \\%2\c$\windows\temp psexec \\%2 -d -i C:\windows\temp\WindowsXP-KB912919-x86-ENU.EXE /quiet /warnrestart:90 goto:eof :W2K copy %PathToPatch%\Windows2000-KB912919-x86-ENU.EXE \\%2\c$\winnt\temp psexec \\%2 -d -i C:\winnt\temp\Windows2000-KB912919-x86-ENU.EXE /quiet /warnrestart:90 goto:eof :NT REM psexec \\%2 -d -c -i %PathToPatch%\NT4.EXE -m -q