Under the normal circumstances, to edit the Windows registry is always an irritating task for all the users, but at times, you will experience keys which are protected by your system. So, whenever you try to edit or add protected registry keys or import settings from a .reg file into a protected key, then surely you will meet with some different errors every time. This happens because you have a lack of permission for making changes. While needing not to worry, this is just a permissions issue; we can all get around this by simply granting your user account in Windows who gives you the correct permission to control and edit all your protected keys.
Causes of Registry Keys is Protected
Here we provide you with a few causes by which you can know that your registry keys are protected:
- When you are trying to make new entry within a protected key, then it will show an error message on your screen which says:
- “Cannot create key: You do not have the requisite permissions to create a new key under the cmd.”
- When you try to edit protected keys, then an error may appear on your screen which says:
- “Cannot edit NoWorkingDirectory: Error writing the value’s new content.”
- Whenever you run any ready-made .reg file to add, delete or change any protected key, then it will show error message n your screen which says:
- “Cannot import C:/ Users/Lori/Dropbox/ArticlesonDB/Rename the HideBasedOnVelocityID value reg: Not all data was successfully written to the registry. Some keys are open by the system or other processes, or you have insufficient privileges to perform this operation.
Steps to Get Full Permissions Control to Edit Protected Registry Keys
If you are also experiencing this above given errors, then without any doubt, you have encountered a protected registry key error on your system. Usually, these keys are only open to modification by the Windows system. If you want to edit or create any registry key, then you have to follow the below-given steps.
However, the Registry Editor is a powerful tool which can render your system unstable or even inoperable if it is misused. This is a pretty simple change, and if you follow the below-given instructions, then you shouldn’t face any problems. But before starting the process just make sure you back up the Registry and back up your computer before making any changes. We also recommend you to create a system restore point; in case something goes wrong then you can roll back and get your data. Follow the steps to fix this issue.
- Click the Windows + R keys together to open the “Run” Dialog box.
- Next, type “regedit” into the open box and click on the OK tab.
- Now, a “User Account Control” dialogue box will appear on your screen, click on the Yes tab to continue further.
- Note: if you are unable to see a dialog box, then it all depends on the User Account settings.
- Go to that Registry key you want to take ownership.
- After that, you can enter the path to the key in the box given under the menu bar.
- Then, click on the Enter key to get the key quickly.
- Next, right-click on the key and choose Permissions option.
- Click on Advanced on the Permission dialogue
- If your user account isn’t the current Owner, then you need to click on the Change link.
- Under the Change option, type your username in the Enter the object name to select box and then click on the Check Names option.
- Now, your official username is inserted into the Enter the object name to the select box.
- Then, click on the OK tab to accept all the changes.
- Now, your name should appear next to the Owner.
- Additionally, if the current key has sub-keys whose ownership you want to take, then check Replace owner on sub containers and objects box.
- Next, click on the Apply tab, but don’t close the dialogue box yet.
- After changing the owner of a registry key, you must have to change the key’s permissions before you can change or modify it.
Maria Thomas is a Microsoft Office expert and her been working in the technical industry since 2004. As a technical expert, Maria has written technical blogs, manuals, white papers, and reviews for many websites such as office.com/setup.