Hi Guys,
I'm having problems deleting a registry key through a script. Its not a permission issue because I can delete the key if I physically go onto the box.
I'm using the standard shell object and implementing the RegDelete method. So we have something like this
objshell=CreateObject("Wscript.Shell")
objshell.RegDelete <key in question>
The error I get is "Unable to remove registry key <reg key in question>. I dont know if this helps, but the registry key in question is under HKCU
I ran some tests and I'm quite ceartain the problem has to do with 'child' keys under the 'parent' key. For example, if I I create a dummy key, with no 'child' keys everything works fine. If I then create 'child' keys to the 'parent' key things stop working.
Has anybody experienced this behaviour. O BTW, I get the same problem if I use WMI to run the query.
Cheers in advance
I'm having problems deleting a registry key through a script. Its not a permission issue because I can delete the key if I physically go onto the box.
I'm using the standard shell object and implementing the RegDelete method. So we have something like this
objshell=CreateObject("Wscript.Shell")
objshell.RegDelete <key in question>
The error I get is "Unable to remove registry key <reg key in question>. I dont know if this helps, but the registry key in question is under HKCU
I ran some tests and I'm quite ceartain the problem has to do with 'child' keys under the 'parent' key. For example, if I I create a dummy key, with no 'child' keys everything works fine. If I then create 'child' keys to the 'parent' key things stop working.
Has anybody experienced this behaviour. O BTW, I get the same problem if I use WMI to run the query.
Cheers in advance