
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