Created
January 3, 2018 11:14
-
-
Save anonymous/7ba84699c75e52d5d46508d4fc51070b to your computer and use it in GitHub Desktop.
another uuid collector for CLSID (need to add InProcServer32)
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
Get-ChildItem "HKLM:\SOFTWARE\Classes\CLSID" | % { | |
$uuid=(($_.PSPath -split("\\"))[-1]) -replace "[{}]"; | |
$name=$_.GetValue("") | |
$comment="w10.clsid "; | |
foreach ($key in $_.GetValueNames()) { | |
if ($key -ne "") { | |
$comment += " "+$key+":"+$_.GetValue($key) | |
} | |
} | |
if ($name.Length -eq 0) { | |
$name="unnamed w10.clsid" | |
} | |
[pscustomobject]@{uuid=$uuid; name=$name; comment=$comment} | |
} | Export-Csv a.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment