PowerTip: Get a list of security patches installed in the last 90 days

Doctor Scripto

Dr Scripto

Summary: Cloud and Datacenter Management MVP, Thomas Rayner, shows how to get a list of all the security patches installed in the last three months.

Hey, Scripting Guy! Question How can I list all the security patches that I’ve installed in the last 90 days?

Hey, Scripting Guy! Answer There’s a class for that! Just use Get-CimInstance, and you can retrieve this information. Here is an example:

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

The Doctor

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment