Skip to content

Instantly share code, notes, and snippets.

@C-Bam
Created July 11, 2018 12:20
Show Gist options
  • Save C-Bam/7eb17144070b86e88521f2d9dc7ac3d4 to your computer and use it in GitHub Desktop.
Save C-Bam/7eb17144070b86e88521f2d9dc7ac3d4 to your computer and use it in GitHub Desktop.
[List Com Object] Permet de lister les objets COM
Get-ChildItem HKLM:\Software\Classes -ErrorAction SilentlyContinue | Where-Object {
$_.PSChildName -match '^\w+\.\w+$' -and (Test-Path -Path "$($_.PSPath)\CLSID")
} | Select-Object -ExpandProperty PSChildName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment