Registry keys that generate errors during a removal operatation

You may receive an error when trying to delete specific registry keys "Error unable to delete registry key" This is because the system process or service associated with the registry key is in use in a running process space. To get around this issue you will need to use psexec to open regedit into another process space that is not in use.

1. download pstools from:
http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/PsTool...

2. Install PSTools

3. open up notepad and copy/paste the following line:

[Driveletter]:\[path to your pstools folder\psexec -i -d -s c:\windows\regedit.exe

Regedit will launch and you will be able to navigate to and delete the registry key you were previously unable to delete.

4. Save the file as regedit.bat

5. Launch the batch file

Regedit will launch and you will be able to navigate to and delete the registry key you were previously unable to delete. This is useful for those times when you are unable to reinstall a program install that was forcefully removed or damaged as some registry keys are not always able to be deleted manually.