Share via

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 for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other

Your answer

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