PowerShell Script to get all registry keys and values
Below one liner may help to get all registry keys and their values under given path:
Get-Item '
Example registry path : HKLM:\SOFTWARE\7-Zip
PS C:\> Get-Item 'HKLM:\SOFTWARE\7-Zip' | %{Get-ItemProperty -Path $_.PSPath}
Path : C:\Program Files\7-Zip\
Path64 : C:\Program Files\7-Zip\
PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\7-Zip
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE
PSChildName : 7-Zip
PSProvider : Microsoft.PowerShell.Core\Registry
Comments
Post a Comment