Marc Carter wrote a script in 2013 that I still reference and use today. It’s one of the key blog posts that convinced me to learn PowerShell.

Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, InstallDate, Publisher

Here’s how I generally use it; assigning output to a variable for later use, then sorting by descending install date:

$apps = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, InstallDate, Publisher
$apps | sort installdate -Descending

Read Marc’s blog. Learn from the critical thinking thought process – and appreciate PowerShell’s consistency even after more than a decade later.

There’s more at https://devblogs.microsoft.com/scripting/