How to install all downloaded Windows Updates with the wusa.exe?


  1. Posts : 369
    Windows 7
       #1

    How to install all downloaded Windows Updates with the wusa.exe?


    I want to be able from a command line install all downloaded windows updates and then shutdown the computer. I know there are GUI settings for this, but how would I do it via command line?

    Edit: As an fyi I've tried things from the pkgmgr.exe and wusa.exe utilities in Windows 7, but I cannot seem to get it to start installing the downloaded updates. Any help is appreciated!
    Last edited by motc7; 20 Feb 2012 at 17:48.
      My Computer


  2. Posts : 369
    Windows 7
    Thread Starter
       #2

    I guess not?
      My Computer


  3. Posts : 103
    Windows 7 Home Premium 32bit
       #3

    See WSUS Offline Update - Update Microsoft Windows and Office without an Internet connection for d/l all updates and install later for 1 or more PCs.
      My Computer


  4. Posts : 369
    Windows 7
    Thread Starter
       #4

    pjhutch said:
    See WSUS Offline Update - Update Microsoft Windows and Office without an Internet connection for d/l all updates and install later for 1 or more PCs.
    It's in German. Got anything in English?
      My Computer


  5. Posts : 2,528
    Windows 10 Pro x64
       #5

    Put all the MSU files into a folder, and then run this batch from within that folder:

    Code:
    @ECHO OFF
    SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
    FOR /R "%~dp0" %%A IN (*.MSU) DO (
            ECHO= Installing %%~nA
            >NUL TIMEOUT /t 3
            WUSA "%%A" /quiet /norestart)
    ECHO Press any key to restart
    >NUL PAUSE
    SHUTDOWN.EXE /s /t 5
    GOTO :EOF
      My Computer


  6. Posts : 103
    Windows 7 Home Premium 32bit
       #6

    Its half English and half German - for English docs visit WSUS Offline Update - Update Microsoft Windows and Office without an Internet connection
      My Computer


  7. Posts : 20
    Windows 8.1
       #7

    Thanks a lot Cluberti.
    Your batch file worked fine on windows vista home premium even.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:04.
Find Us