Windows Updates with Powershell

Managing multiple endpoints is time consuming when not having the right tools. Utilizing powershell magic and a module from Michal Gajda, we can manage windows updates in an automated fashion.
First we need to install the module, Install-Module -Name PSWindowsUpdate
And then run an elevated powershell, Get-WindowsUpdate

A list is populated as below.
Get-WindowsUpdates
Now that we have the list of available we can install them by either using the KB or all of them.

For example to install a specific KB, Get-WindowsUpdate -KBArticleID KB4497165 -install
Or to install and reboot after installation, Get-WindowsUpdate -install -acceptall -autoreboot

There are cases where a patch (KB) is identified by the community as problematic. In such cases simply run, Remove-WindowsUpdate -KBArticleID KB****** -NoRestart