I need safely and precisely clean some orphaned Registry entries and
keys, from HKLM.
How to make this with VBScript?

M.

Re: script to clean orphaned Registry entries by Ayush

Ayush
Wed Jan 24 17:43:23 CST 2007

Replied to [mistral]s message :
> I need safely and precisely clean some orphaned Registry entries and
> keys, from HKLM.
> How to make this with VBScript?
>
> M.
>

Why ? Dont edit registry when you dont know what you are doing.

but if you want then use the RegDelete method of Shell object.

Example :

set wshll = CreateObject("Wscript.Shell")
wshll.RegDelete "HKEY_LOCAL_MACHINE\XXX\YYY\"


--
â?? Ayush
-------------
Search - www.Google.com | Wikipedia - http://en.wikipedia.org
Snip your long urls - http://snipurl.com/
-------------

Re: script to clean orphaned Registry entries by mistral

mistral
Thu Jan 25 04:05:23 CST 2007



On 25 =D0=AF=D0=BD=D0=B2., 01:43, Ayush <"ayushmaan.j[aatt]gmail.com"> wrot=
e:
> Replied to [mistral]s message :

> > I need safely and precisely clean some orphaned Registry entries and
> > keys, from HKLM.
> > How to make this with VBScript?

> > M.Why ? Dont edit registry when you dont know what you are doing.

> but if you want then use the RegDelete method of Shell object.

> Example :

> set wshll =3D CreateObject("Wscript.Shell")
> wshll.RegDelete "HKEY_LOCAL_MACHINE\XXX\YYY\"

> --
> =E2=86=92 Ayush
-------------
> Search =C2=A0 =C2=A0-www.Google.com| Wikipedia =C2=A0 =C2=A0-http://en.wi=
kipedia.org
> Snip your long urls =C2=A0 -http://snipurl.com/
-------------

however, I know that it's not recommended manually edit the registry
unless you know exactly what you're doing.
Some programs leave they entries in Registry even after correct
uninstallation. Probably, it's not a big problem.

M=2E


Re: script to clean orphaned Registry entries by E

E
Thu Jan 25 08:21:01 CST 2007

Any time you do sweeping registry operations like this, you take the risk of losing the system. Or
worse, unexpected degradation or failures.
If you have the option, check out CCleaner (www.ccleaner.com free), or one of the other big
registry cleaners. No matter how good the program, you can end up harming your system. For
instance, most of these programs look for "illegal" registry entries. Some programs make these
entries on purpose.

mistral wrote:
>
> On 25 Янв., 01:43, Ayush <"ayushmaan.j[aatt]gmail.com"> wrote:
>> Replied to [mistral]s message :
>
>>> I need safely and precisely clean some orphaned Registry entries and
>>> keys, from HKLM.
>>> How to make this with VBScript?
>
<SNIP>