Skip to content

Instantly share code, notes, and snippets.

Created January 3, 2018 11:14
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 anonymous/7ba84699c75e52d5d46508d4fc51070b to your computer and use it in GitHub Desktop.
Save anonymous/7ba84699c75e52d5d46508d4fc51070b to your computer and use it in GitHub Desktop.
another uuid collector for CLSID (need to add InProcServer32)
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