Registry-GroupingFormat
4
Hive:
$_.PSParentPath.Replace("Microsoft.PowerShell.Core\Registry::", "")
children
Microsoft.Win32.RegistryKey
Microsoft.PowerShell.Commands.Internal.TransactedRegistryKey
System.Management.Automation.TreatAs.RegistryValue
PSParentPath
Registry-GroupingFormat
30
PSChildName
$result = (Get-ItemProperty -LiteralPath $_.PSPath |
Select * -Exclude PSPath,PSParentPath,PSChildName,PSDrive,PsProvider |
Format-List | Out-String | Sort).Trim()
$result = $result.Substring(0, [Math]::Min($result.Length, 5000) )
if($result.Length -eq 5000) { $result += "..." }
$result