Datto RMM: How do I check the available and installed Windows patches with PowerShell?



How do I check the available and installed Windows patches with PowerShell?


  • Datto RMM


Occasionally, a patch is may not be seen by Datto RMM even though it is available for a device. While the installed patches can be checked in Settings on the device under Windows Update, often (on Windows 10) the available patches can only be seen by checking for updates and running an update on the device.

This procedure requires PowerShell 2.0 or newer.

Launch PowerShell

1. Click on the Start menu and type PowerShell.

2. When the PowerShell menu option appears, right-click it and select Run as Administrator from the menu. 

Run the PowerShell script

The script can either be used as a script for a custom component or run in a PowerShell window locally on the device.

Set-ExecutionPolicy Unrestricted
Install-Module -Name PSWindowsUpdate
Import-Module -Name PSWindowsUpdate

Get-WUList -IsInstalled # This returns the list of installed patches
Get-WUList # This returns the list of available patches

This script can take some time to return the list to the console. These lists can then be compared to the list of available/installed patches from Datto RMM.

Additional References

Was this article helpful?

0 out of 0 found this helpful

You must sign in before voting on this article.

Want to talk about it? Have a feature request?

Head on over to our Datto Community Forum or the Datto Community Online.

For more Business Management resources, see the Datto RMM Online Help and the Autotask PSA Online Help .

Still have questions? Get live help.

Datto Homepage