Build an inventory of the software declared in Windows uninstall keys….
Steps….
- Open Power Shell – Run Windows Terminal….
- Read 64 bit uninstall keys… — Ask HKLM:softwareMicrosoftWindowsCurrentUninstall version*….
- Add 32 bit view… — Ask also the question of the name of the company….
- Sort and export…. — SelectDisplay1 and DigitalVersion and Publisher and export to CSV if necessary…
Commands
Get-ItemProperty HKLM:SoftwareMicrosoftWindowsCurrentVersionUninstall* | Where-Object DisplayName | Select-Object DisplayName,DisplayVersion,Publisher | Sort-Object DisplayName
Get-ItemProperty HKLM:SoftwareWow6432NodeMicrosoftWindowsCurrentVersionUninstall* | Where-Object DisplayName | Select-Object DisplayName,DisplayVersion,Publisher | Sort-Object DisplayName
Key takeaways
- Win32_Product is not recommended for a simple inventory as it can trigger MSI controls/repairs…
- Not all softwares report their installation in the same way…