# retrieving Value.Property value from hashtable

**URL:** <https://forums.powershell.org/t/retrieving-value-property-value-from-hashtable/10919>\
**Category:** PowerShell Help\
**Created:** [July 3, 2018, 7:26am UTC](https://forums.powershell.org/t/retrieving-value-property-value-from-hashtable/10919 "2018-07-03T07:26:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cygnusx1](https://avatars.discourse-cdn.com/v4/letter/c/3ec8ea/32.png) [@cygnusx1](https://forums.powershell.org/u/cygnusx1)\
**Post date:** [July 3, 2018, 7:26am UTC](https://forums.powershell.org/t/retrieving-value-property-value-from-hashtable/10919/1 "2018-07-03T07:26:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![stephenmbell](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@stephenmbell](https://forums.powershell.org/u/stephenmbell)\
**Post date:** [July 3, 2018, 8:59am UTC](https://forums.powershell.org/t/retrieving-value-property-value-from-hashtable/10919/2 "2018-07-03T08:59:58Z")

</div>

I am not sure I understand exactly what you are after - as when I ran your code, I did not get the same “return snippet” you mention above -

However - would this work for you?

```
$fff.psobject.properties.Item('keys').value
```

-sb

---

<div class="post-metadata">

**Author:** ![cygnusx1](https://avatars.discourse-cdn.com/v4/letter/c/3ec8ea/32.png) [@cygnusx1](https://forums.powershell.org/u/cygnusx1)\
**Post date:** [July 3, 2018, 9:41am UTC](https://forums.powershell.org/t/retrieving-value-property-value-from-hashtable/10919/3 "2018-07-03T09:41:24Z")

</div>

As it turns out the Property did not contain any values, just the listing of all the registry data  
I had to do the following  
$fff.GetEnumerator() | ForEach-Object{  
Get-ItemProperty -Path “registry::$(Convert-Path $\_.Value.PSPath)”|Select-Object -ExpandProperty ‘DisplayName’  
}

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:34pm UTC](https://forums.powershell.org/t/retrieving-value-property-value-from-hashtable/10919/4 "2024-05-16T20:34:47Z")

</div>


