Microsoft Edge Try Microsoft Edge A fast and secure browser that's designed for Windows 10 Get started

Skip to main content
Microsoft
Microsoft Support
  • Office
  • Windows
  • Surface
  • Xbox
  • Deals
  • Support
      • Windows apps
      • OneDrive
      • Outlook
      • Skype
      • OneNote
      • PCs & tablets
      • Accessories
      • VR & mixed reality
      • Microsoft HoloLens
      • Xbox games
      • PC games
      • Windows digital games
      • Movies & TV
      • Microsoft Azure
      • Microsoft Dynamics 365
      • Microsoft 365
      • Cloud platform
      • Enterprise solutions
      • Data platform
      • .NET
      • Visual Studio
      • Windows Dev Center
      • Docs
      • Free downloads & security
      • Education
      • Store locations
      • Gift cards
    • View all
    0
    Sign in
    Microsoft Support

    Description of the Windows Update Standalone Installer in Windows

    Content provided by Microsoft

    Content provided by Microsoft

    Applies to: Windows Vista Home BasicWindows Vista Home PremiumWindows Vista UltimateWindows Vista BusinessWindows Vista EnterpriseWindows Vista StarterWindows Server 2008 DatacenterWindows Server 2008 EnterpriseWindows Server 2008 StandardWindows Server 2008 for Itanium-Based SystemsWindows 7 Home BasicWindows 7 Home PremiumWindows 7 ProfessionalWindows 7 UltimateWindows Server 2008 R2 DatacenterWindows Server 2008 R2 EnterpriseWindows Server 2008 R2 StandardWindows 8Windows 8 EnterpriseWindows 8 ProWindows Server 2012 DatacenterWindows Server 2012 DatacenterWindows Server 2012 EssentialsWindows Server 2012 FoundationWindows Server 2012 FoundationWindows Server 2012 StandardWindows Server 2012 StandardWindows 8.1 EnterpriseWindows 8.1 ProWindows 8.1Windows Server 2012 R2 DatacenterWindows Server 2012 R2 StandardWindows Server 2012 R2 EssentialsWindows Server 2012 R2 FoundationWindows 10 More


    Introduction


    This article describes the Windows Update Standalone Installer (Wusa.exe) in the following Windows operating systems:
    • Windows Vista
    • Windows Server 2008
    • Windows 7
    • Windows Server 2008 R2
    • Windows 8
    • Windows Server 2012
    • Windows 8.1
    • Windows Server 2012 R2
    • Windows 10
    • Windows Server 2016 Technical Preview
    The Wusa.exe file is in the %windir%\System32 folder. The Windows Update Standalone Installer uses the Windows Update Agent API to install update packages. Update packages have an .msu file name extension. The .msu file name extension is associated with the Windows Update Standalone Installer.

    More Information


    An .msu file contains the following contents.

    ContentDescription
    Windows Update metadataDescribes each update package that the .msu file contains.

    One or more .cab filesEach .cab file represents one update.

    An .xml fileThis .xml file describes the .msu update package. Wusa.exe uses the .xml file when you perform an unattended installation of the update by using the Package Manager tool (Pkgmgr.exe).

    For example, you download hotfix 934307. The Windows6.0-KB934307-x86.msu file is in the C:\934307 folder. You type the following command at a command prompt to expand the .msu file to a temporary folder:

    expand -f:* "C:\934307\Windows6.0-KB934307-x86.msu" %TEMP%

    Then, you type the following command at a command prompt:

    pkgmgr.exe /n:%TEMP%\Windows6.0-KB934307-x86.xml

    A properties fileThis file contains string properties that Wusa.exe uses. For example, this file contains the title of the associated article in the Microsoft Knowledge Base.


    When you use Wusa.exe to install an update package, Wusa.exe expands the contents of the .msu file to a temporary folder. Then, Wusa.exe performs the following steps:
    1. Wusa.exe uses the Windows Update metadata in the .msu file to search for applicable updates.
    2. Wusa.exe copies the contents of the applicable updates to the Windows Update sandbox. The Windows Update sandbox is a protected folder.
    3. Wusa.exe calls the appropriate function in the Windows Update Agent API according to the mode in which you start Wusa.exe.
    4. When the Windows Update wizard finishes the installation, the Windows Update Agent API returns a status. Then, Wusa.exe works synchronously with the Windows Update Agent API.
    Note Each update in an .msu update package is installed in a separate session. Only one instance of Wusa.exe runs when you use Wusa.exe. Wusa.exe does not change the contents of the updates in .msu files. The Windows Update infrastructure performs the required actions according to the contents of the update.

    When you start Wusa.exe in interactive mode, a welcome screen displays high-level information about the update. If you continue to install the update, Wusa.exe calls the appropriate function in the Windows Update Agent API to start the Windows Update wizard. The Windows Update wizard displays the Microsoft Software License Terms that are associated with the update package. Wusa.exe calls the Windows Update Agent API to continue the installation. Then, Wusa.exe waits until the Windows Update wizard finishes the installation.

    To install an .msu update package, run Wusa.exe together with the full path of the file.

    For example, if the Windows6.0-KB934307-x86.msu file is in the D:\934307 folder, type the following command at a command prompt to install the update package:
    wusa.exe d:\934307\Windows6.0-KB934307-x86.msu
    You can also double-click the .msu file to install the update package.

    You can use Wusa.exe to uninstall an update in Windows 7, Windows Server 2008 R2, Windows 8, and Windows Server 2012.

    Note You cannot use Wusa.exe to uninstall updates in Windows Vista or Windows Server 2008. You can use Windows Defender Software Explorer to manually uninstall the updates. For more information about Software Explorer, go to the following Microsoft website:
    Using Software Explorer in Windows Defender

    You can use the following switches together with Wusa.exe.

    SwitchDescription
    /?, /h, /helpView help.

    /quietRun Wusa.exe in quiet mode without user interaction. When the tool runs in quiet mode, it runs without user interaction. The computer restarts if this is required.

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

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

    Note When you use this switch, the Microsoft Software License Terms do not appear.

    /norestartPrevents 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 you to restart the computer.

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

    wusa.exe D:\934307\Windows6.0-KB934307-x86.msu /quiet /norestart
    /uninstallUninstalls the specified package or KB number.

    /kbSpecifies the package to be uninstalled by using its KB number. Can be passed only together with the /uninstall switch.

    /extractWusa.exe extracts the package contents to a destination folder.

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

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


    Note The .msu files can be installed to an offline image by using the DISM.exe /Add-Package option together with the Windows 7 or Windows 8 OEM Preinstallation Kit (OPK) or the Windows Automated Installation Kit (AIK). For more information, go to the following Microsoft TechNet website:

    Operating System Package Servicing Command-Line Options

    To view the Windows Update Standalone Installer event log, follow these steps:
    1. Click Start
      windows icon
       
      , type event viewer in the Start Search box, and then click Event Viewer in the Programs list. In Windows 8 and Windows Server 2012, on the Start screen, type event viewer, click Settings, and then click View event logs under Settings.

      Notice icon
       If you are prompted for an administrator password or for confirmation, type the password, or click Continue.

    2. In Event Viewer, expand Windows Logs, and then click Setup.

      Setup events appear in the middle pane.

    3. In the Actions pane, click Filter Current Log.

    4. In the Event sources list, click to select the WUSA check box, and then click OK.

    References


    For more information about the Windows Update Agent API, go to the following Microsoft website:
    Windows Update Agent (WUA) API Reference

    Last Updated: Mar 1, 2017
    • Email
    • Print
    Thanks! Your feedback will help us improve the support experience.

    Support

    Support

    • Find downloads
    • Account support
    • Supported products list
    • Microsoft Lifecycle Policy

    Security

    Security

    • Safety & Security Center
    • Download Security Essentials
    • Malicious Software Removal Tool

    Contact us

    Contact us

    • Report a support scam
    • Contact Microsoft Support
    • Privacy questions
    • Locate Microsoft addresses worldwide
    This site in other countries/regions
    Algérie - Français
    Argentina - Español
    Australia - English
    Belgique - Français
    België - Nederlands
    Bolivia - Español
    Bosna i Hercegovina - Hrvatski
    Brasil - Português
    Canada - English
    Canada - Français
    Chile - Español
    Colombia - Español
    Costa Rica - Español
    Crna Gora - Srpski
    Danmark - Dansk
    Deutschland - Deutsch
    Dominican Republic - Español
    Ecuador - Español
    Eesti - Eesti
    El Salvador - Español
    España - Español
    Estados Unidos - Español
    France - Français
    Guatemala - Español
    Hong Kong SAR - English
    Hrvatska - Hrvatski
    India - English
    Indonesia (Bahasa) - Bahasa
    Ireland - English
    Italia - Italiano
    Latvija - Latviešu
    Lietuva - Lietuvių
    Luxembourg - Français
    Magyarország - Magyar
    Malaysia - English
    Maroc - Français
    México - Español
    Nederland - Nederlands
    New Zealand - English
    Norge - Bokmål
    Panamá - Español
    Paraguay - Español
    Perú - Español
    Philippines - English
    Polska - Polski
    Portugal - Português
    Puerto Rico - Español
    România - Română
    Schweiz - Deutsch
    Singapore - English
    Slovenija - Slovenščina
    Slovensko - Slovenčina
    South Africa - English
    Srbija - Srpski
    Suisse - Français
    Suomi - Suomi
    Sverige - Svenska
    Tunisie - Français
    Türkiye - Türkçe
    United Kingdom - English
    United States - English
    Uruguay - Español
    Venezuela - Español
    Việt Nam - Tiếng việt
    Ísland - Íslenska
    Österreich - Deutsch
    Česká Republika - Čeština
    Ελλάδα - Ελληνικά
    България - Български
    Казахстан - Русский
    Россия - Русский
    Україна - Українська
    ישראל - עברית
    الإمارات العربية المتحدة - العربية
    المملكة العربية السعودية - العربية
    مصر - العربية
    भारत - हिंदी
    ไทย - ไทย
    中国 - 简体中文
    台灣 - 繁體中文
    日本 - 日本語
    香港特別行政區 - 繁體中文
    대한민국 - 한국어
    English (Canada)
    • Terms of use
    • Privacy & cookies
    • Trademarks
    • © Microsoft 2018