Wednesday, August 28, 2019

How to check the list of programs installed on a Windows PC using PowerShell?

How to get the list of software installed on the computer using PowerShell?

All the programs that are installed in the computer are available under the following registry Hive.

HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall

We could print the Subkeys from there

PowerShell Code:
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*

AuthorizedCDFPrefix :
Comments            : DELL Command Configure 3.3 (AP12538)
Contact             : Customer Support Department
DisplayVersion      : 3.3.0.314
HelpLink            : http://support.dell.com
HelpTelephone       : 1-877-717-3355
InstallDate         : 20190628
InstallLocation     : C:\Program Files (x86)\Dell\
InstallSource       : C:\WINDOWS\ccmcache\h\
ModifyPath          : MsiExec.exe
Publisher           : Dell Inc.
Readme              :
Size                :
EstimatedSize       : 59175
UninstallString     : MsiExec.exe /
URLInfoAbout        : http://www.dell.com
URLUpdateInfo       : http://support.dell.com
VersionMajor        : 3
VersionMinor        : 3
WindowsInstaller    : 1

Version             : 50528256 

You can select the properties that you want to use by using the 'Select-Object' command


PowerShell Code:
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate  


DisplayName                                                             DisplayVersion   Publisher                         InstallDate
-----------                                                             --------------   ---------                         -----------
Adaptiva Client 5.5 Build 677                                           5.5.677.1        Adaptive Protocols Inc            20190628  

No comments:

Post a Comment

How to suspend an script activity Temporarily ?

There are situations where the script execution needs to be suspended or paused for few milliseconds or seconds. PowerShell Syntax St...