{"id":1314,"date":"2013-06-27T05:03:42","date_gmt":"2013-06-27T05:03:42","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=1314"},"modified":"2013-10-08T21:30:14","modified_gmt":"2013-10-08T21:30:14","slug":"get-a-list-of-software-installed-on-your-pc-with-a-single-line-of-powershell","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=1314","title":{"rendered":"Get a List of Software Installed on Your PC with a Single Line of PowerShell"},"content":{"rendered":"<div>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"image\" alt=\"image\" src=\"http:\/\/cdn.howtogeek.com\/wp-content\/uploads\/2013\/06\/image45.png\" width=\"656\" height=\"306\" border=\"0\" \/><\/p>\n<p>Suppose someone asks you for a list of applications you have installed on your computer. To get this information, what\u2019s the first thing you would think to use? Third-party program? Not us, we have PowerShell.<\/p>\n<h3>How to Get a List of Installed Software on Your PC<\/h3>\n<p>Getting a list of installed software is as simple as using this straightforward WMI query.<\/p>\n<blockquote><p>Get-WmiObject -Class Win32_Product | Select-Object -Property Name<\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"image\" alt=\"\" src=\"http:\/\/cdn.howtogeek.com\/wp-content\/uploads\/2013\/06\/image40.png\" width=\"656\" height=\"306\" border=\"\" \/><\/p>\n<p>You will probably want to export that to a file though, which is also easy enough \u2014 we\u2019ll send the output using the &gt; symbol and adding the path to a new text file that we want to create.<\/p>\n<blockquote><p>Get-WmiObject -Class Win32_Product | Select-Object -Property Name &gt; C:\\Software\\PCapps.txt<\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"image\" alt=\"\" src=\"http:\/\/cdn.howtogeek.com\/wp-content\/uploads\/2013\/06\/image41.png\" width=\"656\" height=\"306\" border=\"\" \/><\/p>\n<p>What makes using PowerShell really neat is that if you do this on two different machines, you can easily compare the software installed on them.<\/p>\n<blockquote><p>Compare-Object -ReferenceObject (Get-Content C:\\Software\\PCapps.txt) -DifferenceObject (Get-Content C:\\Software\\LAPTOPapps.txt)<\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"image\" alt=\"\" src=\"http:\/\/cdn.howtogeek.com\/wp-content\/uploads\/2013\/06\/image42.png\" width=\"656\" height=\"306\" border=\"\" \/><\/p>\n<p>Any entries with a side indicator pointing to the right (=&gt;) mean that the software is installed on my laptop but\u00a0 not on my PC, and any entries with a side indicator pointing to the left (&lt;=) mean that the software is installed on my PC but not on my laptop.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Suppose someone asks you for a list of applications you have installed on your computer. To get this information, what\u2019s the first thing you would think to use? Third-party program? Not us, we have PowerShell. How to Get a List of Installed Software on Your PC Getting a list of installed software is as simple [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[],"class_list":["post-1314","post","type-post","status-publish","format-standard","hentry","category-powershell"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1314"}],"version-history":[{"count":3,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1314\/revisions"}],"predecessor-version":[{"id":1316,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1314\/revisions\/1316"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}