Computing.Net > Forums > Windows XP > Delete Registry Keys

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Delete Registry Keys

Reply to Message Icon

Name: powlaz
Date: April 14, 2008 at 13:14:46 Pacific
OS: XP Pro SP2
CPU/Ram: PD 3.0/2GB
Product: Opti745
Comment:

Hi,

I am trying to delete a couple of registry keys using a batch file that I will attach to our login script. This is what I wrote:
reg delete "HKLM\Software\Microsoft\Windows\Currentversion\Run\SunJavaUpdateSched" /f
reg delete "HKLM\Software\Microsoft\Windows\Currentversion\Run\Quicktime Task" /f
reg delete "HKCU\Software\Micros0ft\Windows\Currentversion\Run\AdobeUpdater" /f

Without the /f the keys are found and I am prompted to confirm that I want to delete the key. With the /f the keys can not be found. What am I missing???

Thanks for the help,

Po



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: April 14, 2008 at 13:30:40 Pacific
Reply:

Move the /f switch just after the command code, i.e.

reg delete /f ...


0

Response Number 2
Name: powlaz
Date: April 15, 2008 at 12:53:56 Pacific
Reply:

Didn't work - says "Invalid Key"

reg delete /f "HKLM\Software\Microsoft\Windows\Currentversion\Run\SunJavaUpdateSched"

What else could it be?


0

Response Number 3
Name: Derek
Date: April 15, 2008 at 17:17:41 Pacific
Reply:

Consider using a .reg file to delete the keys.
Call this (for example) keydel.reg

This can then be called silently from a batch file. The active line in the batch file would be:

regedit /s keydel.reg

This assumes the batch file is in the same folder as the reg file, otherwise use the full path to keydel.reg

some other bloke...


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Delete Registry Keys

Deleting Registry keys www.computing.net/answers/windows-xp/deleting-registry-keys/89991.html

Unable to delete registry key www.computing.net/answers/windows-xp/unable-to-delete-registry-key/149676.html

deleted registry key! www.computing.net/answers/windows-xp/deleted-registry-key/116414.html