Skip to content

Instantly share code, notes, and snippets.

@MagicAndi
Created May 26, 2015 12:16
Show Gist options
  • Save MagicAndi/8ceb6c7aa860792789ac to your computer and use it in GitHub Desktop.
Save MagicAndi/8ceb6c7aa860792789ac to your computer and use it in GitHub Desktop.
Get installed softwrae on a PC as a text file.
Get-WmiObject Win32_Product | Sort-Object Vendor, Name | Format-Table Vendor, Name, Version -groupBy Vendor | Out-File C:\Temp\Test.txt
# Note, can also use
# Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Sort-Object Publisher, DisplayName | Format-Table DisplayName, Publisher, InstallDate | Out-File C:\Temp\Installed.txt
# See
# http://blogs.technet.com/b/heyscriptingguy/archive/2011/11/13/use-powershell-to-quickly-find-installed-software.aspx
# and
# http://blogs.technet.com/b/heyscriptingguy/archive/2013/11/15/use-powershell-to-find-installed-software.aspx
# for details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment