Windows update stand alone pakages (msu) loop

Solution 1:

stop the Windows Update service (net stop wuauserv) before installing a MSU update. I use this cmd:

@ECHO OFF
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
FOR /R "%~dp0" %%A IN (*Windows6.1-KB*.MSU) DO (
        CALL :SUB %%~nA        
    ECHO= Installing KB!KB_NUM!        
    >NUL net stop wuauserv
    WUSA "%%A" /quiet /norestart)
ECHO= == Press any key to close the Window ==
>NUL PAUSE

GOTO :EOF

:SUB

SET "KB_NUM=%*"
FOR /F "DELIMS=-" %%B IN ("%KB_NUM:*-KB=%") DO SET "KB_NUM=%%B"

to enum all MSU updates in the folder where the CMD is stored and install them and before installing an update, it stops the service to speed it up.

Solution 2:

Here's a simple solution:

  1. Go to the Start Menu, type services.msc and press Return
  2. Scroll to find Windows Update and double-click
  3. Change the startup type from Automatic to Manual or Disabled (whichever you prefer)