WUSA.exe

Windows Update Standalone Installer.

Syntax
      WUSA options

Options:
   /extract    Extract the package contents to a destination folder.
               This option was removed from Windows 10 due to a security issue, privilege elevation
               would allow executables to be extracted to C:\windows\system32 [x].

   /kb:#####   Uninstall a package led by using its KB number. Use only together with /uninstall.

   /quiet      Run Wusa.exe in quiet mode without user interaction.
               This option has been deprecated, uninstalling updates quietly could be a security risk
               because malicious software could quietly uninstall an update in the background
               without user intervention.

   /norestart  Prevent Wusa.exe from restarting the computer.
               The /norestart switch is ignored if the /quiet switch is not present.
               If you run Wusa.exe together with these two switches, you must manually restart the
               Operating System after the installation is complete (if the installation requires a restart)

               For example, if the Windows6.0-KB934307-x86.msu file is in the D:\934307 folder, type
               the following command to install the update package:

               wusa.exe D:\934307\Windows6.0-KB934307-x86.msu /quiet /norestart

   /warnrestart
               When this switch is combined with the /quiet switch, Wusa.exe prompts you before it
               begins a restart for install and uninstall operations.

   /forcerestart
               When this switch is combined with the /quiet switch, Wusa.exe forcibly closes
               applications and then begins a restart.

   /uninstall /kb:#####
               Uninstall an update.

   /?, /h, /help   View help.

The wusa usage to quietly uninstall an update has been deprecated. (wusa.exe /uninstall /kb:####### /quiet )
The uninstall command with /quiet switch fails with event ID 8 in the Setup event log. Uninstalling updates quietly could be a security risk because malicious software could quietly uninstall an update in the background without user intervention.

On sites where WSUS is enabled, you may sometimes need to temporarily revert to Windows Update (0) in place of the WSUS server (1).

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU

Value name: UseWUServer
value = 0 to use a Windows Update server.
value = 1 to use a local server that is running Software Update Services.

Restart the Windows Update Service to ensure the changes take effect:

NET stop wuauserv
NET start wuauserv

Examples

Install a package:

C:\> WUSA.exe d:\934307\Windows6.0-KB934307-x86.msu /quiet

Install a package but do not restart:

C:\> WUSA D:\934307\Windows6.0-KB934307-x86.msu /quiet /norestart

Remove a package but do not restart:

C:\> WUSA /uninstall /kb:934307 /norestart

“A scar does not form on the dying. A scar means I survived” ~ Chris Cleave

Related commands

EXPAND - Uncompress CAB/MSU files.
DISM - Operating System Package Servicing.
WUAUCLT - Windows Update Agent.
%systemroot%\WindowsUpdate.log
Q934307 - Description of the Windows Update Standalone Installer.
Q824687 - Command-line switches for Microsoft software update packages.


 
Copyright © 1999-2024 SS64.com
Some rights reserved