I Can Do That With 1 Line of PowerShell: Installed Software

I Can Do That With 1 Line of PowerShell: Installed Software

Rate This
  • Comments 16

Ying Li has a cool PowerShell Script to list installed Software on a local computer HERE

When I looked at it and thought to myself, I can do that with 1 line (if I cheat a little).  Here it is:

PS> gp HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* |Select DisplayName, DisplayVersion, Publisher, InstallDate, HelpLink, UninstallString |ogv

 

Here is what  you get for that 1 line of code:

image

 

I cheated by using OGV  (Out-GridView).  Ying used Excel and the output is nicer.  But when you only want to spend a single line…  :-)

 

Experiment!  Enjoy!  Engage!

Jeffrey Snover [MSFT]
Distinguished Engineer
Visit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell
Visit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

Leave a Comment
  • Please add 4 and 6 and type the answer here:
  • Post
  • Nice to have thing here is an example of how to add filtering by, let's say, Diplay Name?

Page 2 of 2 (16 items) 12