iTranslated by AI
The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🙌
How to list installed applications and versions with PowerShell
While you can retrieve this information using WMI, it can be quite heavy, so I'll show you how to get it from the registry instead.
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion
You can then retrieve it as follows:
PS D:\Repos\Zenn> Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion
DisplayName DisplayVersion
----------- --------------
Visual Studio Enterprise 2022 Preview 17.0.0 Preview 2.0
Visual Studio Enterprise 2019 16.11.3
Amazon Kindle 1.32.0.61109
Now you can use it however you like in PowerShell. That's it!
Discussion