Created
November 19, 2014 16:18
-
-
Save MorikoHandford/9632fa8d09678a3ef01f to your computer and use it in GitHub Desktop.
WinShock Patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# After.bat | |
# Contains a list of computers updated | |
@echo off | |
for /F "tokens=*" %%A in (AfterReboot.txt) do ( | |
echo Processing %%A.... | |
psexec \\%%A cmd /c "start /wait c:\temp\after.bat" | |
) | |
echo Completed | |
pause |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Before.bat | |
# BeforeList.txt contains a list of computers to update | |
@echo off | |
for /F "tokens=*" %%A in (BeforeList.txt) do ( | |
echo Processing %%A.... | |
psexec \\%%A cmd /c "start /wait c:\temp\before.bat" | |
psexec \\%%A cmd /c "start /wait c:\temp\WindowsServer2003-KB2992611-x64-ENU.exe /forceappsclose /forcerestart /passive /quiet /warnrestart:1" | |
) | |
echo Completed | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment