Re: Script to delete registry key having sub keys.

From: mayayana (mayaXXyaYYna1a_at_mindZZspring.com)
Date: 06/17/04


Date: Thu, 17 Jun 2004 12:34:48 GMT


  NT systems work that way. On 9x you can delete the whole
tree but with NT you can only delete a key with no subkeys.
You have to use a recursive function.

--
--
SachiN <SachiN@discussions.microsoft.com> wrote in message
news:55131DBA-7AF0-4D17-8EFA-E996A43C9DF9@microsoft.com...
> Hi Gurus,
> Is there some methord that allows me to delete the registry keys which has
sub keys, using vbscript/WMI.
> Currently I am using the DeleteKey methord, but it will delete the key
only if it has no sub keys.
> I thinks only workaround is to enumerate all keys and use DeleteKey for
each.
> Thanks,
> Sachin


Relevant Pages

  • Re: Script to delete registry key having sub keys.
    ... SachiN wrote: ... > Is there some methord that allows me to delete the registry keys which has sub keys, ...
    (microsoft.public.scripting.wsh)
  • Script to delete registry key having sub keys.
    ... Is there some methord that allows me to delete the registry keys which has sub keys, using vbscript/WMI. ... Currently I am using the DeleteKey methord, but it will delete the key only if it has no sub keys. ...
    (microsoft.public.scripting.wsh)
  • Re: fixed block size
    ... and then the encrypted data is then broken into blocks for shipping out. ... the first of two keys is as long as the padded message, but it is not a OTP. ... message, so message one will have a unique master key and a set of sub keys, ...
    (sci.crypt)