PowerTip: Use PowerShell Tab Expansion to Navigate Registry


Summary: Use the Windows PowerShell tab expansion feature to quickly navigate the Windows registry.

Hey, Scripting Guy! Question How can I use Windows PowerShell to explore settings in the Windows registry?

Hey, Scripting Guy! Answer Use a cmdlet like Get-ItemGet-ItemProperty, or Get-ItemPropertyValue, specify the drive (such as HKCU),
            and then press the Tab key to navigate the registry, for example:

Get-ItemProperty HKCU:\SOFTWARE\ <TAB>

Comments (1)

  1. michal says:

    Hey

    How i can write C# module for Powershell that will do exactly that? What i am meaning here is i e.g.: have parameter -RegistryHive and i would like users to be able to autocomplete it with tab receiving: localmachine, etc?

    Is there a way to create ValidateSet during runtime?

    Michał

Skip to main content