Windows update stand alone pakages (msu) loop

139,710

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)
Share:
139,710

Related videos on Youtube

John Mafia
Author by

John Mafia

Updated on September 18, 2022

Comments

  • John Mafia
    John Mafia almost 2 years

    The windows update of my windows 7 sp1 is not working. So i decided to get possible updates as a stand alone packages. i downloaded many packages. but when i clicked at one of the packages firstly it shows preparing for 1 second then searching for updates on this computer then this thing keeps showing for hrs even i let it doing it over night after still it keeps showing searching for updates. even if the package is of some kbs. is it bug in my windows that need to fix. please help to fix this issue

  • DavidPostill
    DavidPostill about 8 years
    Welcome to Super User! This is really a comment and not an answer to the original question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. Please read Why do I need 50 reputation to comment? What can I do instead?
  • Torsten Bronger
    Torsten Bronger about 8 years
    @DavidPostill, the first line is a comment, but the rest is a useful (and better) answer.