Certain areas of the Windows Registry cannot be accessed due to the Permissions assigned (or lack thereof) for those keys. There are legitimate cases where you need to access a registry key to modify or retrieve a setting, and receive Access is Denied or similar errors when doing so. Some of the errors you may encounter are:
Error Creating Key
<key name> cannot be opened. An error is preventing this key from being opened.
Details: Access is denied.
Cannot create key: You do not have the requisite permissions to create a new key under <key name>.
To get access to a registry key, you’ll need to change or take ownership and then assign full control (or the required) permissions for your user account. Here are the instructions to do the same in any version of Windows.
(The screenshots are from a Windows 10 computer, but the steps are exactly the same in Windows 8 and 8.1. In Windows Vista & 7, there is a slight change in the permission dialog boxes, where ownership can be set by clicking the Owner tab in the Advanced Security dialog. Owner tab has been removed in Windows 8 and higher.)
Take Ownership of a Registry Key
- In the Registry Editor (
regedit.exe) window, navigate to the branch for which you want to modify the permissions.
- Right-click on the key, and choose Properties.
- Click the Advanced button.
- In the Advanced Security Settings dialog, note down the owner. If it says Unable to display current owner, or if your account isn’t the current owner, click Change
- Type your user account name and click OK.
- Your user account is showing up as the owner, but the change wouldn’t not applied until you click Apply.
- If you also want to take ownership of the subkeys under the selected branch, click Replace owner on subcontainers and objects, and then click Apply. Don’t close the dialog yet.
(If using Windows Vista or 7, click the Permissions tab in the Advanced Security Settings dialog, and follow rest of the instructions. The dialog boxes would be different in Windows Vista & 7 after Step 7, but it’s not that difficult to follow.)
Assigning Full Control Permissions for your User Account
You’ve just changed the ownership of the key, but that’s not enough. You’ll need to assign necessary Permissions (usually, Full Control) to the specific branch in order to write to it.
- Click the Add button in the Advanced Security settings dialog.
- Click Select a principal
- Type in your user account name, and click OK.
- Click Full Control checkbox to enable it.
You’re now granted your user account Full Control permissions.
That’s it. Add as many entries as you need, such as for Administrators, SYSTEM, etc. as required.
One small request: If you liked this post, please share this?One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
- Pin it!
- Share it to your favorite blog + Facebook, Reddit
- Tweet it!
About the author
Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and he has been a Microsoft Most Valuable Professional (MVP) for 10 consecutive years from 2003 to 2012.