Use PowerShell to list all property values from a registry entry

I’ve had to use a variation of this script many times and each time I’ve been stumped for 30 minutes before coming to a solution. Microsoft has not addressed this issue very well with the Get-ItemProperty cmdlet, so the Select-Object is necessary. Without further fanfare, here is a script to list the property values from a registry entry:

Set-Location ‘HKCU:\Software\Microsoft\Assistance\Client\1.0\Settings’
Get-Item . |
Select-Object -ExpandProperty property |
ForEach-Object {
New-Object psobject -Property @{“property”=$_;
“Value” = (Get-ItemProperty -Path . -Name $_).$_}} |
Format-Table property,value -AutoSize

Add -HideTableHeaders to Format-Table to remove the header. Remove the property header from Format-Table to view only values.

Leave a Reply