The operating system will not allow you to make changes in certain system critical registry keys. Nevertheless, if you want to make changes even in such registry keys, you will have to take full control of these keys before Windows will allow you to make or save the changes.
Generally, this error occurs because of the system protected Keys and once you tried to access them you will definitely get this error.
Before you open the registry editor as admin, the first backup your Windows registry and create a system restore point (Very Important). Next, navigate to the registry key where you want to make the change.
Fix Cannot create key error writing to the registry
1.Close this error dialog box and right-click on the registry key where you want to make the changes and click on Permissions.
2.In the Permissions box, under its sole security tab, highlight your own Administrators account or user account and then check the box under Full Control – Allow. If it is checked then uncheck the deny box.
3.Click Apply and then OK. If it still doesn’t work and you get the following security warning – Unable to save permission changes, do the following:
4.Open the Permissions windows again and click on Advanced button instead.
5.And click on change next to the Owner.
5.Do you see another owner like say, Aditya or anything other than your account? If so, change owner to your Name. If not then type the user name of your account and click check name, then select your name. Click Apply and then OK.
6.Next check “Replace owner on subcontainers and objects” and the check “Replace all child object permission entries with inheritable permission entries from this object.” Click Apply then click OK.
7..NOW again in the Permissions box, under its sole security tab, highlight your own Administrators account and then check the box under Full Control – Allow. Click Apply and then OK.
Recommended for you:
Fix WiFi does not work after upgrading to Windows 10 How to install Group Policy editor (gpedit. msc) How to fix Google Chrome has stopped working error Find Windows 10 product key without using any software
That should work, you have successfully fix Cannot create key error writing to the registry but if you still have any questions regarding this post feel free to ask them in the comments section.