There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen blue screen of death boot bsod computer connection crash css dell display driver drivers email error excel firefox firefox 3 game hard drive internet internet explorer itunes laptop malware monitor network networking outlook outlook 2003 outlook express password printer problem problems router slow software sound sprtcmd.exe startup trojan usb video virus vista windows windows xp wireless
DOS/PDA/Other
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > DOS/PDA/Other >
deleting registry keys with a batch file


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
rednektec357's Avatar
Junior Member with 1 posts.
 
Join Date: Jan 2004
26-Jan-2004, 09:16 PM #1
Unhappy deleting registry keys with a batch file
I am looking for a way to delete some old symantec ghost entries from the registry on many xp machines. I can do it manually by deleting all symantec keys in the registry but I have way to many of these ps's with this bad image on it and I cant push my new ghost client. I was thinking a batch file would be best for this but I really dont know. Maybe a .inf or a .reg merge. What would you suggest. I dont know enough dos to be able to do this. help please
Captain_Iglo's Avatar
Junior Member with 1 posts.
 
Join Date: Mar 2004
07-Mar-2004, 07:25 PM #2
Hi there,

my suggestion is to create a reg.file as follows:
Find the keys you want to get rid of. IMHO this is the easiest way.
Use notepad or wordpad to write registry files, you just save them with a .reg extension.
The first line in the registry file for XP or 2000 has to be:
Windows Registry Editor Version 5.00
NOTE: For windows 98, ME, NT 4.0 replace with:
REGEDIT4
Put a line in between Windows Registry Editor 5.00 and the next entry.
EXAMPLE:
To delete the key
[HKEY_CURRENT_USER\Key\Subkey]
create the following:
[-HKEY_CURRENT_USER\Key\Subkey]

If you want to delete a value set the value equal to a minus.

EXAMPLE:
To delete the value:
[HKEY_CURRENT_USER\Key\Subkey]"whatever"="whenever"
create the following:
[HKEY_CURRENT_USER\Key\Subkey]"whatever"=-

You may save all changes into one .reg file and deploy it to the desired machines.
Hope this helps.

Regards

Uwe
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:21 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.