Adding Registry Hive HKEY_CURRENT_CONFIG (HKCC) to your PowerShell Drives

Did you know that you can add additional registry hives to your PowerShell drives? No? Then I will show you now how to do that and how to access HKCC with PowerShell. Let’s get started.

Determine PS Drives

Get-PSDrive display all built-in PowerShell Drives.


Some registry hives are missing here. Only HKCU and HKLM are present by default.

Add HKCC (HKey Current Config)

For adding additional drives, all we need to know is how to access them. In this example I use the registry:: statement to access HKCC to add it as a PowerShell drive.

New-PSDrive `
-Name HKCC `
-Root 'registry::HKEY_CURRENT_CONFIG' `
-PSProvider Registry

After all, it’s there and accessible.

Set-Location hkcc:

Have fun accessing the values of the HKCC Hive via PowerShell!

Categories: PowerShell

Tagged as: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.