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:
I would like it to look something like this (The table header format is not important):
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?
Try something like this:
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion | ConvertTo-Csv -NoTypeInformation
See also Export-Csv
.