PowerTip: Use PowerShell to Display Registry Keys

Doctor Scripto

Summary: Learn how to use Windows PowerShell to display registry keys.

Hey, Scripting Guy! Question How can I use Windows PowerShell to provide a list of registry keys that I can filter, instead of using Regedit to search?

Hey, Scripting Guy! Answer Use the Get-ItemProperty cmdlet and point it to a specific registry hive. The following command looks for
           software and Microsoft on the HKLM drive. It uses the psChildName property to display the registry key names.

Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\* | select pschildname


Discussion is closed.

Feedback usabilla icon