How to Install Windows Update using PowerShell in windows 10?

We already covered about Windows Update, how to start and stop windows update in a normal way. In this post, we will cover about installing Windows Update using PowerShell. PowerShell is a powerful command-line scripting language integrated into the .NET framework, which can be embedded within other applications. It automates batch processing and creates system management tools. It includes more than 130 standard command-line tools for functions and enables administrators to perform tasks on local and remote Windows systems through access to Component Object Model (COM) and Windows Management Instrumentation (WMI). To install windows update we have to install the module first, Module is a package of commands such as cmdlets, providers, functions, workflows, variables, and aliases. To run a windows update, install windows update module first.

Step 1: Install Windows Module.

  • Open PowerShell in admin mode, Run below-mentioned command.

Install-Module PSWindowsUpdate

Installing PS Module in Powershell-Windows Update using PowerShell

Step 2: Download Windows Update

Run the below-mentioned command, this command will check for recent updates. Before running the command, you have to check the Execution policy. Check here how to enable the execution policy?

Get-WindowsUpdate

Downloading windows Update using powershell-Windows Update using PowerShell

Step 3: Install Windows Update.

Before installing Windows Update check for the windows installer service is enabled or not. We can enable the installer service in GUI method, but this post is about PowerShell and installing Windows Update using PowerShell so we enable the windows installer service using PowerShell itself.

  • Open PowerShell and type the below-mentioned command to start the windows installer service.

Start-Service msiserver

  • Next, run the below-mentioned command to install the windows update.

Install-WindowsUpdate

installing windows update using powershell-Windows Update using PowerShell

This command will install recent windows update which is shown by step 2 command.

4 thoughts on “How to Install Windows Update using PowerShell in windows 10?”

  1. To activate ESET software follow the provided steps.

    You first need to go to eset.com/us/activate.
    Put in your ESET activation key.
    Choose the correct country.
    Enter your first and last name.
    Provide the enterprise’s name if you want.
    Provide the email address.
    You may also provide your phone number.
    After filling all the information, you need to click the reCAPTCHA option.
    Press Submit.
    Choose the preferred subscription package.
    Click Continue, and you are good to go.

    http://eset-usactivate.com/

Leave a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top