Viewing installed programs and versions via PowerShell

Just a quick post on a useful command that I found online by Richard Giles and tweaked. I use this remotely to check on installed versions of products on a user’s machine:

Code

Get-ChildItem HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall |

% {Get-ItemProperty $_.PsPath} |

where {$_.Displayname -and ($_.Displayname -match “.*”)} |

sort Displayname |

select Displayname,DisplayVersion,Publisher |

ft -AutoSize

As a one-liner:

Get-ChildItem HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall | % {Get-ItemProperty $_.PsPath} | where {$_.Displayname -and ($_.Displayname -match “.*”)} | sort Displayname | select Displayname,DisplayVersion,Publisher | ft -AutoSize

Output

Leave a Reply

Your email address will not be published. Required fields are marked *