February 3rd, 2017

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

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.