Skip to content

Instantly share code, notes, and snippets.

@exorcistas
Created April 23, 2022 19:45
Show Gist options
  • Save exorcistas/3634fc1c306e8c9e39118e4484f77bc1 to your computer and use it in GitHub Desktop.
Save exorcistas/3634fc1c306e8c9e39118e4484f77bc1 to your computer and use it in GitHub Desktop.
Powershell script to fetch registered COM objects
Get-ChildItem HKLM:\Software\Classes -ErrorAction SilentlyContinue | Where-Object {
$_.PSChildName -match '^\w+\.\w+$' -and (Test-Path -Path "$($_.PSPath)\CLSID")
} | Select-Object -ExpandProperty PSChildName | Out-GridView
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment