Skip to content

Instantly share code, notes, and snippets.

@kfstorm
Created June 9, 2015 08:54
Show Gist options
  • Save kfstorm/42b52804e8b9308ec3de to your computer and use it in GitHub Desktop.
Save kfstorm/42b52804e8b9308ec3de to your computer and use it in GitHub Desktop.
$r1 = "Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall"
$r2 = "Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall"
$r3 = "Registry::HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall"
$r4 = "Registry::HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall"
(Dir $r1) + (Dir $r2) + (Dir $r3) + (Dir $r4) | where {$_.GetValue("SystemComponent") -ne 1}| where {$_.GetValue("ParentDisplayName") -eq $null} | %{$_.GetValue("DisplayName")} | sort -Unique
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment