Install Windows Updates With PowerShell

Cathy O'Neil
Cathy O'Neil Last Updated: May 18, 2022


Software: Windows 7, 8 & 10 | Last modified on 2018-06-18


Use PowerShell to download and install the latest Windows updates.

[Solution 1] Install the PSWindowsUpdate module


  1. Open PowerShell (Admin).
  2. Version 5 or higher is required for these steps. To confirm you have a supported version, execute $PSVersionTable.PSVersion
  3. Execute Install-Module PSWindowsUpdate Get-Command –module PSWindowsUpdate to install the required module.
  4. Execute Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18d to register the new update service.
  5. Execute Get-WUInstall –MicrosoftUpdate –AcceptAll –AutoReboot to begin downloading and installing all available updates.

Cathy O'Neil
Written by

Cathy O'Neil

Cathy O’Neil is the author of the bestselling Weapons of Math Destruction, which won the Euler Book Prize and was longlisted for the National Book Award. She received her PhD in mathematics from Harvard and has worked in finance, tech, and academia. She launched the Lede Program for data journalism at Columbia University and recently founded ORCAA, an algorithmic auditing company. O’Neil is a regular contributor to Bloomberg View.


0 ratings

Related articles