If you get the “Error writing the value’s new contents” message in the Registry Editor while modifying its values, the solutions provided in this article will help you. You cannot modify Registry values until you fix this error. Usually, this error occurs due to permission issues in the Registry.
Error writing the value’s new contents in Registry Windows 11
To fix the “Error writing the value’s new contents” message while modifying the Registry, use the suggestions below. Before proceeding, make sure that you are signed as an administrator. You cannot modify the registry with a Local account.
- Are you signed in with a School or Work account?
- Enable the hidden administrator account
- Take ownership of the required registry key
- Use Notepad to modify the Registry
Let’s start.
1] Are you signed in with a School or Work account?
You cannot modify Registry values if you are signed with a School or Work account. If this is your personal computer and you are signed in with your school or work account, sign out and sign in with your personal account.
2] Enable the hidden administrator account
The lack of required permissions is the cause of this error. Windows 11/10 has a built-in Administrator account. This account is disabled by default. You can use it for troubleshooting purposes. Enable the hidden administrator account and log in to that account. Now, open the Registry Editor and modify the value here. The error should not occur this time.
When you are done, sign out of the hidden administrator account and sign in to Windows with your personal account. Now, disable the hidden administrator account.
3] Take ownership of the required registry key
You can also take ownership of the required Registry key to fix this error. Before proceeding, create a System Restore Point. This is important!
Now, right-click on the required Registry Key and select Permissions. In the Group or user names box, select your username and then select the Allow checkbox for Full Control.
If your username is not there, click Advanced, then click on the Change link next to the Owner. Type your username and click Check Names. Now, click OK to add that username. After that, select the username and allow Full Control to it. If this does not work, add Everyone as a user and allow Full Control to it. Now, you should be able to change the Registry value.
4] Use Notepad to modify the Registry
You can also use Notepad to modify the Registry. Right-click on the required Registry key and select Export. If you want to modify the subkey values, export only that subkey. After exporting the Registry key or subkey, make a copy of it and save it in another location on your hard drive, so you can restore the original values of that registry key if you make a mistake.
Now, right-click on the exported Registry key and select Edit in Notepad. Change the value in Notepad, save it, and close Notepad. Double-click on the exported Registry key to merge it with your Registry. Click Yes when you get a prompt.
I hope this helps.
Related: Error creating Key or Value, Cannot create value or key, Error writing to the registry
How do I fix Invalid value for registry error?
You may see the “Invalid value for registry” error while opening an image or a video. To fix this error, you can try some fixes, like repairing your system image files, resetting or repairing the Photos app, etc. If this does not work, uninstall and reinstall the Photos app.
How do I repair my registry?
Various factors are responsible for Registry corruption on a Windows PC, such as orphaned entries, malware attacks, etc. To repair a corrupt Registry, you can try some fixes, like repairing the system image files, running the Startup Repair, performing the System Restore, etc.
Read next: An error is preventing this key from being opened.