How to delete a registry key in Command Line - TechRepublic
Question
February 12, 2010 at 06:07 AM
jhazard112

How to delete a registry key in Command Line

by jhazard112 . Updated 16 years, 4 months ago

I have been trying to find out how to delete a registry key in command line within XP. I found a way to do it in 2000, but nothing for XP. This is the command that I am using:

regedit /del HKLM\software\microsoft\windows\currentversion\run\”Adobe Reader Speed Launcher” /force

I run it and nothing happpens. It does not delete the key. I am trying to make this a batch, so that I can run this everytime I reload a computer. This is not the exact file that I need to delete but it is a good test.

Along with that, I have to open command line with admin rights to do anything obviously. But I was wondering if there was a way to make a batch that will open command line with admin rights. I have to do a runas in Start>Run to do this. Any help is much appreciated.

This discussion is locked

All Comments