Microsoft Update Health Tools, and PSWindowsUpdate

article #1455, updated 19 days ago

This appears to be an optional add-on which helps Windows do updates. Beyond that all of my searching has come up with vagueness. But Microsoft recommends it and often installs it without informing us, so probably it helps fairly often.

Microsoft Update Health Tools comes in KB4023057. To install KB4023057, we can use PSWindowsUpdate:

Here’s the Powershell basics:

Install-Module PSWindowsUpdate
Set-ExecutionPolicy Bypass -Scope Process
Import-Module PSWindowsUpdate
Get-WindowsUpdate -Install -KBArticleID KB4023057

PSWindowsUpdate is a very interesting module all by itself, it can do lots of things, e.g., install all updates available from Microsoft. Another nice function is:


To get a full list:

Get-Command -Module PSWindowsUpdate

Get-Help works for all of them.

One can install all updates available from Microsoft, though this can be dangerous, there are huge ones and drivers and BIOS too:

Install-WindowsUpdate -AcceptAll

To install all available updates except one KB:

Install-WindowsUpdate -AcceptAll -NotKBArticleID KB000000

where KB000000 is the KB to be excepted. There’s also -NotCategory and -NotTitle for items without KB articles.

To just see the list of available updates:


Here’s a complete run-anywhere command paste for preparing to use the module:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
set-executionpolicy bypass -scope process -force
Function PrepareModule {
	param( [string]$ModuleName )

	If (Get-Module -ListAvailable -Name $ModuleName)
		{ Update-Module $ModuleName -Force }
		{ Install-Module $ModuleName -Force }
Install-PackageProvider -Name NuGet -Force
Import-PackageProvider -Name NuGet -Force
PrepareModule PSWindowsUpdate
Import-Module PSWindowsUpdate