Powershell – Connect HKEY_USER as Drive

If you work with Powershell and Registry you will notice that you can access the HKLM and HKCU without any problems. But if you want for example work on Registry entries in following HKEY_USER Registry key, you must first connect / create a “Drive” letter.

New-PSDrive -Name HKU -PSProvider Registry -Root HKEY_USERS

Leave a Reply

Your email address will not be published. Required fields are marked *