Deleting Registry key and sub-keys? 
Author Message
 Deleting Registry key and sub-keys?

Have a situation where I have a couple of hundred installs of some software
that is being corrupted by registry entries left over in the:

"HKEY_CURRENT_USER \Software\Offending Software Key"

from previous installs of an earlier version of the software. Would like to
delete the key "Offending Software Key" and all its subkeys with a vbs
script. (There are several hundred subkeys). I have figured out how to
delete individual keys - however I would just like to be able to easily
delete the top key ("Offending Software Key") and take all the sub keys with
it. Is there a way to do this?

Thanks in advance for any help.

Jim L.



Mon, 19 Sep 2005 12:07:36 GMT  
 Deleting Registry key and sub-keys?

Quote:

> Have a situation where I have a couple of hundred installs of some software
> that is being corrupted by registry entries left over in the:

> "HKEY_CURRENT_USER \Software\Offending Software Key"

> from previous installs of an earlier version of the software. Would like to
> delete the key "Offending Software Key" and all its subkeys with a vbs
> script. (There are several hundred subkeys). I have figured out how to
> delete individual keys - however I would just like to be able to easily
> delete the top key ("Offending Software Key") and take all the sub keys with
> it. Is there a way to do this?

Hi

3 different methods described in the link below...

VBScript/WMI, command line utility Reg.exe, as well as with regedit.exe and a
reg file:

From: Torgeir Bakken (MVP)
Subject: Re: How to remove REG keys?
Newsgroups: microsoft.public.win2000.registry
Date: 2003-03-26 07:21:46 PST
http://groups.google.com/groups?selm=3E81C511.2F197B01%40hydro.com

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter



Mon, 19 Sep 2005 12:16:05 GMT  
 Deleting Registry key and sub-keys?
Excellent....simpler than I thought, thanks for the help. Saved me buco
time.....



Quote:

> > Have a situation where I have a couple of hundred installs of some
software
> > that is being corrupted by registry entries left over in the:

> > "HKEY_CURRENT_USER \Software\Offending Software Key"

> > from previous installs of an earlier version of the software. Would like
to
> > delete the key "Offending Software Key" and all its subkeys with a vbs
> > script. (There are several hundred subkeys). I have figured out how to
> > delete individual keys - however I would just like to be able to easily
> > delete the top key ("Offending Software Key") and take all the sub keys
with
> > it. Is there a way to do this?

> Hi

> 3 different methods described in the link below...

> VBScript/WMI, command line utility Reg.exe, as well as with regedit.exe
and a
> reg file:

> From: Torgeir Bakken (MVP)
> Subject: Re: How to remove REG keys?
> Newsgroups: microsoft.public.win2000.registry
> Date: 2003-03-26 07:21:46 PST
> http://groups.google.com/groups?selm=3E81C511.2F197B01%40hydro.com

> --
> torgeir
> Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of the 1328 page
> Scripting Guide: http://www.microsoft.com/technet/scriptcenter



Mon, 19 Sep 2005 12:35:47 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Delete registry key with subkeys

2. Help Deleting Registry Keys with subkeys and values

3. Delete Registry Key with subkeys

4. Deleting Registry KEY with Subkeys

5. find the specify Root key and Sub key from the registry

6. How to delete registry key and all subkeys

7. Renaming or copying a registry key and its sub-keys

8. find the specify Root Key and Sub Key

9. read (all) subkeys of a given registry key ?

10. enumerates subkeys on a registry key

11. Reading Registry sub-keys

12. Creating Registry (Sub)Keys ?

 

 
Powered by phpBB® Forum Software