Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
1 like 0 dislike
3.1k views
in PowerShell by 24 25 33
Is there a PowerShell script I can use to get the list of all security updates installed in my Windows Server 2019 last month?

1 Answer

2 like 0 dislike
by 160 200 389
selected by
 
Best answer

Get Installed Updates in Windows in Last Month using PowerShell

You can use the below PowerShell script, to get all Updates installed in Windows Server Last Month

Get-CimInstance -Class win32_quickfixengineering | Where-Object { $_.InstalledOn -gt (Get-Date).AddMonths(-1) }

Output
Get Installed Updates in WIndows last month using PowerShell

Get Installed Security Updates in Windows in the Last Month using PowerShell

You can use the below PowerShell script, to get all Security Updates installed in Windows Server Last Month

Get-CimInstance -Class win32_quickfixengineering | Where-Object { $_.Description -eq "Security Update" -and $_.InstalledOn -gt (Get-Date).AddMonths(-1) }

Output
Get Installed Security Updates in WIndows last month using PowerShell

Get Installed Hotfix in Windows in the Last Month using PowerShell

You can use the below PowerShell script, to get all Hotfixes installed in Windows Server Last Month

Get-CimInstance -Class win32_quickfixengineering | Where-Object { $_.Description -eq "Hotfix" -and $_.InstalledOn -gt (Get-Date).AddMonths(-1) }

Output
Get Installed Hotfix in WIndows last month using PowerShell

by 24 25 33
0 0
Thanks for this detailed answer, very helpful
If you don’t ask, the answer is always NO!
...