{"id":3351,"date":"2009-11-15T09:42:37","date_gmt":"2009-11-15T09:42:37","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2009\/11\/15\/i-can-do-that-with-1-line-of-powershell-installed-software\/"},"modified":"2019-02-18T13:06:06","modified_gmt":"2019-02-18T20:06:06","slug":"i-can-do-that-with-1-line-of-powershell-installed-software","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/i-can-do-that-with-1-line-of-powershell-installed-software\/","title":{"rendered":"I Can Do That With 1 Line of PowerShell: Installed Software"},"content":{"rendered":"<p>Ying Li has a cool PowerShell Script to list installed Software on a local computer <a href=\"http:\/\/myitforum.com\/cs2\/blogs\/yli628\/archive\/2008\/01\/16\/powershell-script-to-list-installed-software-on-local-computer.aspx\">HERE<\/a>.&#160; <\/p>\n<p>When I looked at it and thought to myself, I can do that with 1 line (if I cheat a little).&#160; Here it is:<\/p>\n<p><font color=\"#000080\" size=\"2\" face=\"Courier New\">PS&gt; gp HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\* |Select DisplayName, DisplayVersion, Publisher, InstallDate, HelpLink, UninstallString |ogv<\/font><\/p>\n<p>&#160;<\/p>\n<p>Here is what&#160; you get for that 1 line of code:<\/p>\n<p><a href=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/BlogFileStorage\/blogs_msdn\/powershell\/WindowsLiveWriter\/ICanDoThatWith1LineofPowerShellInstalled_8872\/image_2.png\"><img decoding=\"async\" style=\"border-bottom: 0px;border-left: 0px;border-top: 0px;border-right: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/BlogFileStorage\/blogs_msdn\/powershell\/WindowsLiveWriter\/ICanDoThatWith1LineofPowerShellInstalled_8872\/image_thumb.png\" width=\"875\" height=\"410\" \/><\/a> <\/p>\n<p>&#160;<\/p>\n<p>I cheated by using OGV&#160; (Out-GridView).&#160; Ying used Excel and the output is nicer.&#160; But when you only want to spend a single line\u2026&#160; \ud83d\ude42<\/p>\n<p>&#160;<\/p>\n<p>Experiment!&#160; Enjoy!&#160; Engage! <\/p>\n<p>Jeffrey Snover [MSFT]   <br \/>Distinguished Engineer    <br \/>Visit the Windows PowerShell Team blog at:&#160;&#160;&#160; <a href=\"http:\/\/blogs.msdn.com\/PowerShell\">http:\/\/blogs.msdn.com\/PowerShell<\/a>    <br \/>Visit the Windows PowerShell ScriptCenter at:&#160; <a href=\"http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx\">http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ying Li has a cool PowerShell Script to list installed Software on a local computer HERE.&#160; When I looked at it and thought to myself, I can do that with 1 line (if I cheat a little).&#160; Here it is: PS&gt; gp HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\* |Select DisplayName, DisplayVersion, Publisher, InstallDate, HelpLink, UninstallString |ogv &#160; Here is what&#160; [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3351","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"blog_post_summary":"<p>Ying Li has a cool PowerShell Script to list installed Software on a local computer HERE.&#160; When I looked at it and thought to myself, I can do that with 1 line (if I cheat a little).&#160; Here it is: PS&gt; gp HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\* |Select DisplayName, DisplayVersion, Publisher, InstallDate, HelpLink, UninstallString |ogv &#160; Here is what&#160; [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/3351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=3351"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/3351\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=3351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=3351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=3351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}