Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jetstreamin/f76d9c647c5f910ef991b5fcf0142959 to your computer and use it in GitHub Desktop.
Save jetstreamin/f76d9c647c5f910ef991b5fcf0142959 to your computer and use it in GitHub Desktop.
function Lookup-Clsid
{
Param([string]$clsid)
$CLSID_KEY = 'HKLM:\SOFTWARE\Classes\CLSID'
If ( Test-Path $CLSID_KEY\$clsid) {
$name = (Get-ItemProperty -Path $CLSID_KEY\$clsid).'(default)'
$dll = (Get-ItemProperty -Path $CLSID_KEY\$clsid\InProcServer32).'(default)'
}
$name, $dll
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment