Every month MS releases patches that most places require you to install, but what do you do when you need to install those patches on machines that NEVER touch the network?
Well there is a solution. You can download the Microsoft monthly ISO located here:
Ok so this can be a real pain in the rear to run each of these patches manually. Who wants to do that anyway and with Windows 7 and Server 2008 / Server 2008 R2 the old ways of building a bat file no longer work.
But there is still hope. You can now use WUSA.exe. WUSA.exe is built into the OS and is scriptable.
I found this wonderful little script a few months ago and have been using it to create a distributable DVD to patch offline systems.
I’ve made a minor modification so it can be used with other scripts that I am running. to update the systems with other software as well.
Simply Extract the Contents of the ISO to a folder and put the bat script in the outermost folder then burn the contents to a dvd for distribution.It can be fired from a bat file or called from another executable etc…
if %PROCESSOR_ARCHITECTURE%==x86 set arch=x86
if %PROCESSOR_ARCHITECTURE%==AMD64 set arch=x64
for /F "tokens=4-5 delims=[.] " %%A in (‘ver’) do set ver=%%A.%%B
echo Installing updates
for /r "%~dp0" %%m in ("Windows%ver%*%arch%*.msu") do (
rem echo %msufile%
start /wait "%SystemRoot%\System32\wusa.exe" "%msupath%" /quiet /norestart
echo %msufile% %errorlevel% >> %log%
Chris Stauffer <><