复制下面命令到 PowerShell(管理员)回车,会把所有「安装路径在 C 盘」的软件名称和路径导出到桌面 C_Software.csv :
Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*,
HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* |
Where-Object { $_.InstallLocation -and $_.InstallLocation.StartsWith("C:") } |
Select-Object DisplayName, InstallLocation |
Export-Csv -NoTypeInformation -Encoding UTF8 "$env:USERPROFILE\Desktop\C_Software.csv"
打开桌面 C_Software.csv 就是完整清单