Ways to Get Windows Update With PowerShell on Windows 10. – PowerShell options have occupied locations on the Win+X menu replacing Command prompt. Microsoft is emphasizing the use of this Command line shell on Windows 10. So let’s learn to use PowerShell to receive the Windows update on Windows 10. See a very interesting guide in this concern How to Create Restore Point on Windows 10 Using PowerShell.
PowerShell, however, was misunderstood to be the replacement for Command Prompt. This is why users did not use PowerShell as much as they use command prompt. There is nothing to be feared of while using the PowerShell. It has a completely different purpose except the inclusion and execution using commands thing in the former.You can update and upgrade your Windows version easily by using the PowerShell.
Launched in 2006, this tool has established itself to be the first choice for the network administrators and advanced users altogether. Not just this, it has even extended its functionality by coming with the Linux versions as well. The Powershell, being a framework, target to achieve configuration management and task automation. It consists of a command shell and a language based on the NET framework.
This article will tell you that how you can get Windows Update With PowerShell. So without wasting more time, let’s get started.
Ways to Get Windows Update With PowerShell in Windows 10
Section 1 – Installation of PowerShell Windows Update Module
Read the steps given below carefully to install this module on your system.
Step 1 – Go to Microsoft TechNet and download the zip file named PSWindowsupdate.zip from there.
Step 2 – Right click on the downloaded file and choose Extract all. This will make a separate folder for its components (file’s).
Step 3 – Select a destination or extract the Zip content (archive) to C: > Windows > System32 > WindowsPowerShell > v1.0 > Modules
Step 4 – After clicking extract, click on Continue on the Destination Folder Access Denied pop up.
Step 5 – Open elevated PowerShell (as an admin) and change the policy from Restricted to RemoteSigned. Just type in the following cmdlet:
Enter Y to accept the above-mentioned command. This will allow you to run scripts of PowerShell from any unknown publisher as well.
Step 6 - Import the PSWindowsUpdate module with the following command:
Step 7 – You can also get a complete list of all cmdlets for PSWindowsUpdate through the following command:
Section 2 – Add Support for other products (Optional)
Step 1 – Go to the Settings app > update & Security > Windows Update > Advanced Options to change your preferences if you wish to receive updates to other Microsoft products while updating your Windows.
Enable the same facility in PSWindowsUpdate using the following command:
Type Y to accept the command and entering it for execution
Section 3 – Check, Install or hide Windows Update with PowerShell anytime
Step 1 – To obtain the list of all the updates, type the following cmdlet:
Step 2 – To obtain/ check updates and feature upgrades that are available for Windows, type the following cmdlet.
Step 3 – Simply filter the updates with the full or partial title of an update to hide it from the list.
Step 4 – Now type –
Hide-WUUpdate-Title “Microsoft*”-Confirm: $ False
This command will hide all the updates having the work Microsoft in their title.
Step 5 – You can even hide any update using KB ID instead of using the title. Use the following command:
Hide-WUUpdate-KBArticleID “”KB4013867” –Confirm: $False
To unhide the updates or feature upgrades:
KB ID or using filters or titles can also unhide an update in the list. Use the following cmdlet for this:
Hide-WUUpdate-Title “Microsoft*”-HideStatus: $False-Confirm: $False
To install all updates with manually handling rejection and acceptance requests from each, use the following cmdlet:
To add additional Microsoft updates, use:
Step 8 – Enter Y to accept and N to reject each update manually.
Step 9 – Without accepting manually, switch to the automatic mode by adding the parameter Autoboot or AutoAccept to the command to restart the system.
Step 10 – You can hide or unhide feature upgrades like Windows installer builds as we did for the case of updates (to hide them).
Section 4 – Uninstalling an Update or to Check the Update History
Step 1 – Enter the following command to check the update history anytime:
Step 2 – Uninstall the updates using the following cmdlet:
Get-WUUninstall-KBArticleID “KB4013867”-Confirm: $False
Section 5 – To obtain Help (the final section)
PowerShell help is also available but you need to type certain cmdlets for that. For example, to get help about Hide-WUUpdate, type the following cmdlet.
Accept the command by entering Y in the prompt. Get-Help has to be updated while running it for the first time. It is no major concern as it is only a one-time process and need not be done again and again.
That’s it; this is how you can easily Get Windows Update With PowerShell in Windows 10 anytime. Type and execute the commands carefully as failing to this can easily build-up errors in the smooth functioning of the system.
RECOMMENDED: Click here to fix Windows errors