27 October 2017

One-liner for installing Microsoft Updates in PowerShell

The following one-liner is good for installing missing Microsoft Updates / Windows Updates.

First, Start PowerShell as administrator and then type:

Install-Module PSWindowsUpdate -Force ; Get-WUInstall –MicrosoftUpdate –AcceptAll –Install

The result will look like this:

image