The Registry provider allows you to get, add, change, clear, and delete registry keys, entries, and values directly within PowerShell.
Note: This provider is only available on PowerShell running on Windows.
Default Drives
The provider exposes the registry via two default drives:
HKLM: maps to HKEY_LOCAL_MACHINEHKCU: maps to HKEY_CURRENT_USER
Supported Cmdlets
You can use standard PowerShell cmdlets to interact with the registry, including:
- Navigation:
Get-Location, Set-Location (and alias cd) - Item Management:
Get-Item, Get-ChildItem, Invoke-Item, Move-Item, New-Item, Remove-Item - Property Management:
Clear-ItemProperty, Get-ItemProperty, New-ItemProperty, Remove-ItemProperty, Set-ItemProperty - ACL Management:
Get-Acl, Set-Acl