Translate

Tuesday, January 14, 2025

How to check installed software versions via Powershell

 Get installed software list with Get-WmiObject

Run the command below in Powershell:
Get-WmiObject -Class Win32_Product

Get installed software from querying the registry for installed software

Run the command below in Powershell (Local Machine Registry):
$InstalledSoftware = Get-ChildItem "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall"
foreach($obj in $InstalledSoftware){write-host $obj.GetValue('DisplayName') -NoNewline; write-host " - " -NoNewline; write-host $obj.GetValue('DisplayVersion')}

Run the command below in Powershell for (Current User Registry):

 $InstalledSoftware = Get-ChildItem "HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall" foreach($obj in $InstalledSoftware){write-host $obj.GetValue('DisplayName') -NoNewline; write-host " - " -NoNewline; write-host $obj.GetValue('DisplayVersion')}

 

No comments:

Post a Comment