Re: Script to delete registry key having sub keys.
From: mayayana (mayaXXyaYYna1a_at_mindZZspring.com)
Date: 06/17/04
- Next message: reaperman: "Re: remote ip configuration"
- Previous message: SachiN: "Script to delete registry key having sub keys."
- In reply to: SachiN: "Script to delete registry key having sub keys."
- Next in thread: Torgeir Bakken \(MVP\): "Re: Script to delete registry key having sub keys."
- Messages sorted by: [ date ] [ thread ]
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
- Next message: reaperman: "Re: remote ip configuration"
- Previous message: SachiN: "Script to delete registry key having sub keys."
- In reply to: SachiN: "Script to delete registry key having sub keys."
- Next in thread: Torgeir Bakken \(MVP\): "Re: Script to delete registry key having sub keys."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|