PowerShell
Low risk
Export the list of installed software
Identify the 32-bit and 64-bit applications reported in the registry and export the result to CSV.
$Chemins = @(
'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*',
'HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*',
'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*'
)
Get-ItemProperty $Chemins -ErrorAction SilentlyContinue |
Where-Object DisplayName |
Select-Object DisplayName, DisplayVersion, Publisher, InstallDate |
Sort-Object DisplayName -Unique |
Export-Csv "$env:USERPROFILE\Desktop\logiciels-installes.csv" -NoTypeInformation -Encoding UTF8
When should you use it?
Useful before replacing a workstation, reinstalling Windows, or comparing two computers.
What the script does
- The script queries the uninstall locations in the Windows registry.
- The CSV file is created on the desktop of the signed-in user.
Precautions
- Portable applications and some Microsoft Store apps may not appear.
Rollback
Simply delete the CSV file when you no longer need it.