ALERT: Datto Drive Cloud service will no longer be available as of July 1, 2019. For more information, see our end-of-life article. To learn how to download your Datto Drive Cloud data, please visit this article.

Datto RMM: How Do I Check the Available and Installed Windows Patches With Powershell?

Follow

Question

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

Environment

  • Datto RMM

Answer

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 below 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 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 Community Forum or get live help.