Skip to content

Instantly share code, notes, and snippets.

@MagicAndi
Created October 2, 2018 13:54
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 MagicAndi/e07c92afcf6905a0fafbcd81d2a63137 to your computer and use it in GitHub Desktop.
Save MagicAndi/e07c92afcf6905a0fafbcd81d2a63137 to your computer and use it in GitHub Desktop.
PowerShell one liner to create a CSV file of all installed programs.
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Sort-Object DisplayName | Export-CSV -Path C:\Temp\InstalledPrograms.csv -NoTypeInformation -Delimiter "|" | foreach { $_ -replace '^"','' -replace "`"|`"", "|" -replace '"$','' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment