Windows registry corruption

In this case I was having problems fixing a DVD drive on a laptop. The main issue was with a corrupt registry. The idea was to delete a corrupt key and allow the system to recreate it, but the following issue was inability to delete the registry key even as administrator.
The solution is to use PSEXEC tool available from Microsoft HERE
Run this from CMD as administrator:
psexec -i -d -s c:\windows\regedit.exe
The you should be able to delete the registry. Make sure to backup the registry key beforehand.
Once deleted the device should disappear. Restart the laptop and scan for devices. Recover the key from a backup and DVD should come back to life.