Put the following in a ".reg" file

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system]
"DisableRegistryTools"=dword:00000000
And put the following in a batch file

REGEDIT /S <name of reg file>.REG
Run the batch file and that should work.