Get-ActualCVEsByProduct

Enumerates all CVEs for a specified product for a specified year-month combination.
Needed PoSh module MsrcSecurityUpdates will be downloaded and imported.

How to use

Dot-sourcing function Get-ActualCVEsByProduct from .ps1 file MSRCGetPatches.ps1

  1. PS C:\Develop\PowerShell\Security\MSRCGetPatches> . .\MSRCGetPatches.ps1
  2. PS C:\Develop\PowerShell\Security\MSRCGetPatches> Get-ActualCVEsByProduct -ProductTitle "Windows*" -OutputStyle GridView -Date 08.2023

Parameters of function Get-ActualCVEsByProduct

PARAMETER ProductTitle (mandatory)

  • "Windows Server 2016*"
  • "Windows Server 2016"
  • "Microsoft Edge*"

PARAMETER OutputStyle (mandatory)

  • HTML
  • GridView
  • Excel by using module ImportExcel from dfinke
  • Console

PARAMETER Date (optional)
If not specified, the current year and month will be used!

  • 2021-Jun
  • 2023-Jan
  • 03/01/2022
  • 11.2022

Samples:

  1. Get-ActualCVEsByProduct -ProductTitle "Windows Server 2016*" -OutputStyle HTML
  2. Get-ActualCVEsByProduct -ProductTitle "Microsoft Edge*" -OutputStyle GridView
  3. Get-ActualCVEsByProduct -ProductTitle "Windows Server 2016*" -Date '2022-Dec' -OutputStyle Excel
  4. Get-ActualCVEsByProduct -ProductTitle "Windows Server 2016*" -Date '2022-Dec' -OutputStyle Console
  5. Get-ActualCVEsByProduct -ProductTitle "Windows 10 for x64-based Systems" -Date '12.2022' -OutputStyle Console | Format-Table
  6. Get-ActualCVEsByProduct -ProductTitle "Windows 10 Version 22H2 for x64*" -Date '12.2022' -OutputStyle Console | Select CVE, CVE-Title, Severity, Impact | Format-Table
  7. Get-ActualCVEsByProduct -ProductTitle "Microsoft SQL Server 2016*" -OutputStyle GridView -Date 06.2022

Output sample 1. as HTML Report:

HTML

Output sample 1. as GridVIew:

GridView

Output sample 3.:

GridView

Output sample 4.:

Excel

Excel