Skip to content

Instantly share code, notes, and snippets.

@brad-anton
Created June 14, 2016 19:33
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save brad-anton/d5a7f393fa9eaa3685bd70f99c07f9d8 to your computer and use it in GitHub Desktop.
Save brad-anton/d5a7f393fa9eaa3685bd70f99c07f9d8 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