Error occurred while trying to add/import a registry key file “Not all data was successfully written to the registry. some keys are open by the system or other process, or you have insufficient privileges to perform this operation”
As the error message indicates this is due to lack of permission or the registry value is in used..
To bypass and add the registry value follow the below, steps
Download pstools (PSTools.zip) from http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx
Then extract PSTools.zip it in to a folder.. open a command prompt run as administrator
(1)Then change directory to the location where you have extracted the PSTools.zip
(Mine it is C:\Users\araa\Desktop\PSTools )
(2) open registry editor with psexec with following parameters.. -s -i -d
The command should be psexec -s -i -d regedit
Then registry editor will be opened and through file menu import the registry key you want..
That’s it .. you are done..