Created
June 14, 2016 19:33
-
-
Save brad-anton/d5a7f393fa9eaa3685bd70f99c07f9d8 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