This code will give me a hashtable
$fff = Get-ChildItem “HKLM:Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall” -Recurse|Select-Object *|Group-Object PSChildName -AsHashTable -AsString
Return snipet:
Property : {Inno Setup: Setup Version, Inno Setup: App Path, InstallLocation, Inno Setup: Icon Group…}
PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Skype_is1
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
PSChildName : Skype_is1
PSDrive : HKLM
I want to return the DisplayName value from Property. How?
Will eventually retrieve all entries but for testing have simplified it to
$fff.‘7-Zip’.Property.GetValue(‘DisplayName’) AND .Item(‘DisplayName’)
thank you