In the meantime, I built a script that installs all MSUs in the same folder one after another, restarting the Windows Update service in between to prevent the endless "searching for updates" bug. However, I'm sure I've missed many MSUs and possibly installed superseded updates as well. The file naming scheme I'm using is "yyyy-mm KBxxxxxxx.msu", which makes the script to install older updates first.
Code: Select all
@echo off
cls
echo.
echo Installing updates from "%~dp0"
echo.
for /r "%~dp0" %%m in (*.msu) do (
set msupath=%%m
set msufile=%%~nm
call :wusa
)
echo.
echo Done! Please check %log% for results.
echo.
pause
goto :eof
:wusa
echo %msufile%
start /wait "%SystemRoot%\System32\wusa.exe" "%msupath%" /quiet /norestart
echo Restarting Windows Update Service...
net stop wuauserv
net start wuauserv