How to Install Windows 10 Updates Using PowerShell • Pureinfotech

While updates happen automatically on Windows 10, and you can even manually download them through Windows Update if you have to manage multiple systems, try to patch a new installation, or want to create a new one. a custom script to automate the process otherwise you can also use commands to query and install missing patches with PSWindowsUpdate on PowerShell.

PSWindowsUpdate is a community module of Michael Gajda, available through the PowerShell Library. It includes components to help you easily check for, download, and install quality updates on Windows 10.

In this instruct, you will learn the steps to check for and install updates for Windows 10 by PowerShell.

How to Update Windows 10 Using PowerShell

To check for and install updates with PowerShell, use these steps:

  1. Open Begin.

  2. Search PowerShell, right click on the top result and select Run as administrator Selection.

  3. Enter the following command to install the Windows Update runtime module and press Into the:

    Install-Module PSWindowsUpdate
    PSWindowsUpdate Settings Module
    PSWindowsUpdate Settings Module

    Notebook: After installing the module, you don’t need to repeat again step number 3 to use the module and manage updates.

  4. Type ONE and press Into the confirm.

  5. Type the following command to check for updates with PowerShell and press Into the:

    Get-WindowsUpdate
  6. Enter the following command to install available Windows 10 updates and press Into the:

    Install-WindowsUpdate

    PowerShell installs Windows 10 updates
    PowerShell installs Windows 10 updates

  7. Type ONE and press Into the confirm.

After you complete the steps, the latest cumulative updates will download and install on your computer.

Manage updates using PowerShell

The PSWindowsUpdate module includes a lot of options that you can use to manage updates. You can always use Get-Command –Module PSWindowsUpdate command to query the list of available commands.

For example, follow these steps to download, install, and then restart your computer to complete the update:

  1. Open Begin.

  2. Search PowerShell, right click on the top result and select Run as administrator Selection.

  3. Enter the following command to download and install all available updates and reboot the system then press Into the:

    Get-WindowsUpdate -AcceptAll -Install -AutoReboot

After you complete the steps, Windows 10 will download and install all available updates and restart the computer to automatically apply the changes.

There is also the option to download and install a specific update:

  1. Open Begin.

  2. Search PowerShell, right click on the top result and select Run as administrator Selection.

  3. Type the following command to list available updates along with their KB numbers using PowerShell and press Into the:

    Get-WindowsUpdate
    
  4. Enter the following command to download and install specifically and reboot the system and press Into the:

    Get-WindowsUpdate -Install -KBArticleID 'KB5007186'

    In the command, make sure to replace “KB5007186” with the KB name of the update you want to install.

After you complete the steps, in this case Windows 10 will download and install the update KB4560960 on your device.

Windows 10 comes with Windows Update Provider, but it has limited options compared to the PSWindowsUpdate module and is more complicated to use.

We may earn commissions on purchases using our links to help continue providing free content. Privacy Policy Information.

All content on this site is provided without warranty, express or implied. Use any information at your own risk. Always back up your device and files before making any changes. Privacy Policy Information.

https://pureinfotech.com/install-windows-10-update-powershell/ How to Install Windows 10 Updates Using PowerShell • Pureinfotech

Hung

Hung is a Interreviewed U.S. News Reporter based in London. His focus is on U.S. politics and the environment. He has covered climate change extensively, as well as healthcare and crime. Hung joined Interreviewed in 2023 from the Daily Express and previously worked for Chemist and Druggist and the Jewish Chronicle. He is a graduate of Cambridge University. Languages: English. You can get in touch with me by emailing: hung@interreviewed.com.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button