Need to fetch Registry Patches (CVEs) present in Software Center

Siddhesh Thorat (PSP) 0 Reputation points
2024-11-13T10:36:36.1033333+00:00

Hi Team,

I've written PowerShell Script to fetch all the Registry Keys (CVEs) present in the Software Center. But, it is not returning any result. Can you please help us here.

Ex. : Reference of my PowerShell script (Not everything I pasted here)

function Get-CVEUpdatesFromSoftwareCenter {   

   $updates = Get-WmiObject -Namespace "root\ccm\ClientSDK" -Class CCM_Application

   #$CVE_Pattern = "CVE-\d{4}-\d+"

    #$CVE_Pattern = "^CVE.*-"

    $CVE_Pattern = "CVE-\d+-\w+"

   

    # Filter updates based on CVE ID if it's mentioned in the update name or description

    $CVEUpdates = $updates | Where-Object {$_.Name -match $CVE_Pattern}

Result : No updates found with the specified CVE pattern.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,818 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,669 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.