February 6th, 2015

PowerTip: Use PowerShell to Display Registry Keys

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.