Skip to content

Instantly share code, notes, and snippets.

@eggist77
Last active May 28, 2022 04:45
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 eggist77/8cce9880f1f66819c52c3a9c61a31dc8 to your computer and use it in GitHub Desktop.
Save eggist77/8cce9880f1f66819c52c3a9c61a31dc8 to your computer and use it in GitHub Desktop.
powershell Get a list of installed applications
$CurrentDir = Split-Path $MyInvocation.MyCommand.Path
# 1
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* |
Select-Object DisplayName, DisplayVersion, Publisher, InstallDate |
Export-csv -path $CurrentDir"\ProgramList1.csv" -Encoding Default -NoTypeInformation
# 2
Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\* |
Select-Object DisplayName, DisplayVersion, Publisher, InstallDate |
Export-csv -path $CurrentDir"\ProgramList2.csv" -Encoding Default -NoTypeInformation
# 3
Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* |
Select-Object DisplayName, DisplayVersion, Publisher, InstallDate |
Export-csv -path $CurrentDir"\ProgramList3.csv" -Encoding Default -NoTypeInformation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment