Script to delete registry key having sub keys.

From: SachiN (SachiN_at_discussions.microsoft.com)
Date: 06/17/04


Date: Thu, 17 Jun 2004 05:18:01 -0700

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: 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)
  • Re: Script to delete registry key having sub keys.
    ... SachiN wrote in message ... sub keys, using vbscript/WMI. ... > Currently I am using the DeleteKey methord, but it will delete the key ...
    (microsoft.public.scripting.wsh)