Track Installed Programs with PowerShell "get-itemproperty" on Windows 7

Q

How to track and maintain installed programs with registry keys using PowerShell "get-itemproperty" on Windows 7? I know how to use PowerShell cmdlets.

✍: FYIcenter.com

A

If you want to get a list of all installed applications on your Windows 7 based on registry keys with PowerShell cmdlets, you can use the "get-childitem" cmdlet as described in this tutorial:

1. Start a PowerShell window

2. Run the following command to dump the "Uninstall" registry entries:

PS C:\fyicenter> get-itemproperty 
   HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*
   > Installed-Programs_Keys.txt

3. Open Installed-Programs_Keys.txt in Notepad. You see a list of installed programs recorded in the file, as shown in the example below:


PSPath          : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWA
                  RE\Microsoft\Windows\CurrentVersion\Uninstall\LenovoAutoScrol
                  lUtility
PSParentPath    : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWA
                  RE\Microsoft\Windows\CurrentVersion\Uninstall
PSChildName     : LenovoAutoScrollUtility
PSDrive         : HKLM
PSProvider      : Microsoft.PowerShell.Core\Registry
(default)       : 
TVTNAME         : VS
DisplayName     : Lenovo Auto Scroll Utility
Publisher       : Lenovo
UninstallString : "C:\windows\system32\rundll32.exe" "C:\Program Files\Lenovo\V
                  IRTSCRL\cleanup.dll",InfUninstallEx DefaultUninstall.LH C:\Pr
                  ogram Files\Lenovo\VIRTSCRL\tpdu_vs.inf
DisplayVersion  : 2.20
DisplayIcon     : C:\Program Files\Lenovo\VIRTSCRL\virtscrl.exe
EstimatedSize   : 500

PSPath          : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWA
                  RE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Secur
                  ity Client
PSParentPath    : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWA
                  RE\Microsoft\Windows\CurrentVersion\Uninstall
PSChildName     : Microsoft Security Client
PSDrive         : HKLM
PSProvider      : Microsoft.PowerShell.Core\Registry
DisplayIcon     : C:\Program Files\Microsoft Security Client\EppManifest.dll,-1
                  00
UninstallString : "C:\Program Files\Microsoft Security Client\Setup.exe" /x
Publisher       : Microsoft Corporation
NoModify        : 1
NoRepair        : 1
InstallLocation : C:\Program Files\Microsoft Security Client
URLInfoAbout    : http://go.microsoft.com/fwlink/?LinkId=225780&mkt=en-us
DisplayName     : System Center Endpoint Protection
VersionMajor    : 4
VersionMinor    : 10
Version         : 67764431
DisplayVersion  : 4.10.207.0
InstallDate     : 20161215
...

4. Run the command for other "Uninstall" registry locations:

PS C:\fyicenter> get-itemproperty 
   HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*
   >> Installed-Programs_Keys.txt
   
PS C:\fyicenter> get-itemproperty 
   HKU\...\Software\Microsoft\Windows\CurrentVersion\Uninstall\*
   >> Installed-Programs_Keys.txt
   
PS C:\fyicenter> get-itemproperty 
   HKU\...\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* 
   >> Installed-Programs_Keys.txt

Track Installed Programs with PowerShell "get-wmiobject" on Windows 7

Hide Installed Programs in Control Panel on Windows 7

Uninstall Old or Bad Programs and Software on Windows 7

⇑⇑ Windows 7 Installed Programs

2017-04-28, 3022🔥, 0💬