How to Fix “Error Writing the Value’s New Contents” in Windows Registry

Learn how to resolve permission issues and successfully modify Windows Registry values when encountering this common error message.

How to Fix “Error Writing the Value’s New Contents” in Windows Registry

The Windows Registry is a critical database that stores important configuration settings for your operating system and installed software. However, you may sometimes encounter an “Error writing the value’s new contents” message when trying to modify registry values. This error typically occurs due to insufficient permissions, preventing you from making necessary changes. Let’s explore several effective methods to resolve this issue and regain control over your registry editing capabilities.

Step 1: Verify your account type. If you’re using a school or work account on your personal computer, sign out and log in with your personal Microsoft account instead. This ensures you have the necessary permissions to modify registry values.

Step 2: Enable the hidden administrator account to bypass permission restrictions:

1. Press Windows key + R to open the Run dialog.

2. Type cmd and press Ctrl + Shift + Enter to open Command Prompt as administrator.

3. Enter the following command: net user administrator /active:yes

4. Log out of your current account and sign in to the newly activated Administrator account.

5. Open Registry Editor and attempt to modify the desired value.

6. After making changes, log out of the Administrator account and disable it using the command: net user administrator /active:no


Step 3: Take ownership of the specific registry key you’re trying to modify:

1. Open Registry Editor by pressing Windows key + R, typing regedit, and pressing Enter.

2. Navigate to the problematic registry key.

3. Right-click on the key and select “Permissions”.

4. Click “Advanced”, then click “Change” next to the Owner field.

5. Enter your username, click “Check Names”, then click “OK”.

6. Check “Replace owner on subcontainers and objects” and click “Apply”.

7. In the Group or user names section, select your username and check “Allow” for “Full Control”.

8. If your username isn’t listed, click “Add”, type your username, and grant it full control.


Step 4: Use Notepad to indirectly modify registry values:

1. In Registry Editor, right-click the key you want to modify and select “Export”.

2. Save the exported .reg file to your desktop.

3. Right-click the exported file and select “Edit” to open it in Notepad.

4. Locate the value you want to change and modify it directly in Notepad.

5. Save the changes and close Notepad.

6. Double-click the modified .reg file to merge the changes back into the Registry.

7. Confirm any prompts to allow the changes.

This method bypasses direct Registry Editor permissions, allowing you to make changes indirectly through a text file.


If you’re still encountering issues after trying these methods, consider running a system file check to repair any corrupted Windows files that might be causing registry problems. Open Command Prompt as administrator and run the command: sfc /scannow


Remember to always create a system restore point before making any registry changes. This allows you to revert your system to a stable state if something goes wrong during the modification process.


With these techniques, you should be able to overcome the “Error writing the value’s new contents” message and successfully modify your Windows Registry settings. Just be cautious when making changes, as incorrect modifications can lead to system instability.