PowerShell - Retrieve Windows Updates directly from the database

For a specific machine, or all machines

Written by Ines

Last published at: July 24th, 2024

Requirements:

 

Usage:

  1. Start a code terminal (powershell terminal, cmd, visual code etc.)
  2. Import the module as follows:

 

Import-Module "<path to where you saved the .ps1 file>\Get-TSTMGMTWinUpdates.ps1"

 

Example:

 

 

  1. For a specific device, run the command as follows:
Get-TSTMGMTWinUpdates -ServerInstance server.domain.local" -Database "THINSCALE" -Username "Admin" -Password "Passw0rd" -DeviceName "MyDevice"

 

Output: