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

motc7

ZAHAL
Power User
Local time
2:04 AM
Messages
369
Location
FEMA Region 6
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:

My Computer My Computer

At a glance

Windows 7Core i78 GBATI FireGL
Computer Manufacturer/Model Number
HP Pavilion dv7
OS
Windows 7
CPU
Core i7
Memory
8 GB
Graphics Card(s)
ATI FireGL
Monitor(s) Displays
Secondary is an HP L1940T
Screen Resolution
1680x1050
Hard Drives
160 GB SSD and 500 GB SATA
Keyboard
G11 Logitech
Mouse
G7 Logitech
Internet Speed
Fiber
Other Info
My rig smegging rules!
I guess not?
 

My Computer My Computer

At a glance

Windows 7Core i78 GBATI FireGL
Computer Manufacturer/Model Number
HP Pavilion dv7
OS
Windows 7
CPU
Core i7
Memory
8 GB
Graphics Card(s)
ATI FireGL
Monitor(s) Displays
Secondary is an HP L1940T
Screen Resolution
1680x1050
Hard Drives
160 GB SSD and 500 GB SATA
Keyboard
G11 Logitech
Mouse
G7 Logitech
Internet Speed
Fiber
Other Info
My rig smegging rules!

My Computer My Computer

At a glance

Windows 7 Home Premium 32bitIntel Core 2 2.4GHz4GBATI Radeon 4850
Computer Manufacturer/Model Number
CCL Online OEM
OS
Windows 7 Home Premium 32bit
CPU
Intel Core 2 2.4GHz
Motherboard
Foxconn 946GZ7MA
Memory
4GB
Graphics Card(s)
ATI Radeon 4850
Sound Card
Realtek HD Audio
Monitor(s) Displays
Prolite E2407HDS
Screen Resolution
1920x1080
Hard Drives
2 x WDC 500 GB
Cooling
Fan
Keyboard
Microsoft Digital Media
Mouse
Optical Wheel Mouse
Internet Speed
14Mb/sec
Other Info
Internet ISP: Plusnet

My Computer My Computer

At a glance

Windows 7Core i78 GBATI FireGL
Computer Manufacturer/Model Number
HP Pavilion dv7
OS
Windows 7
CPU
Core i7
Memory
8 GB
Graphics Card(s)
ATI FireGL
Monitor(s) Displays
Secondary is an HP L1940T
Screen Resolution
1680x1050
Hard Drives
160 GB SSD and 500 GB SATA
Keyboard
G11 Logitech
Mouse
G7 Logitech
Internet Speed
Fiber
Other Info
My rig smegging rules!
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 My Computer

At a glance

Windows 10 Pro x64Intel Core i7 4790K @ 4.5GHz32GB DDR3Nvidia GeForce GTX970
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 10 Pro x64
CPU
Intel Core i7 4790K @ 4.5GHz
Motherboard
Asus Maximus Hero VII
Memory
32GB DDR3
Graphics Card(s)
Nvidia GeForce GTX970
Sound Card
Realtek HD Audio
Screen Resolution
1920x1200
Hard Drives
1x Samsung 250GB SSD
4x WD RE 2TB (RAIDZ)
PSU
Corsair AX760i
Case
Fractal Design Define R4
Cooling
Noctua NH-D15

My Computer My Computer

At a glance

Windows 7 Home Premium 32bitIntel Core 2 2.4GHz4GBATI Radeon 4850
Computer Manufacturer/Model Number
CCL Online OEM
OS
Windows 7 Home Premium 32bit
CPU
Intel Core 2 2.4GHz
Motherboard
Foxconn 946GZ7MA
Memory
4GB
Graphics Card(s)
ATI Radeon 4850
Sound Card
Realtek HD Audio
Monitor(s) Displays
Prolite E2407HDS
Screen Resolution
1920x1080
Hard Drives
2 x WDC 500 GB
Cooling
Fan
Keyboard
Microsoft Digital Media
Mouse
Optical Wheel Mouse
Internet Speed
14Mb/sec
Other Info
Internet ISP: Plusnet
Thanks a lot Cluberti.
Your batch file worked fine on windows vista home premium even.
:party:
 

My Computer My Computer

At a glance

Windows 8.1Intel - Core i7 4.2GHz8 GBNvidea GeForce 7800GT 2GB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 8.1
CPU
Intel - Core i7 4.2GHz
Motherboard
Intel
Memory
8 GB
Graphics Card(s)
Nvidea GeForce 7800GT 2GB
Screen Resolution
1980 X 1280
Hard Drives
1 TB Toshiba
500 GB SATA
Internet Speed
Download - 30 Mbps, Upload - 10 Mbps
Antivirus
BitDefender Internet Security
Browser
Mozilla Firefox,Google Chrome,Internet Explorer
Back
Top