Search code examples
windowspowershelltabular

How to get a comma separated table of installed Windows programs using PowerShell?


I need to get a list of installed programs on my computer (Windows 10) in a comma separated format showing the name of the program and version in a format like this: Program Name,Version

What I have tried:

I am currently using this Windows PowerShell command:

Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion | Format-Table –AutoSize  

This gets me a table that looks like this:

enter image description here

I would like it to look something like this (The table header format is not important):

enter image description here

Is there a way to format the table that would accomplish this or another PowerShell command that would produce an output similar to the second table?


Solution

  • Try something like this:

    Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion | ConvertTo-Csv -NoTypeInformation
    

    See also Export-Csv.