-
-
Save manilz/4e78d861aa2f05ff4b1fc42f3fc9d8b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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