April 2004
Beginner
416 pages
11h 3m
English
If you need to delete a registry key, perhaps as a result of cleaning up after a virus, uninstalling software, or cleaning up after you’re finished with the keys you created, you can use the DeleteKey method of StdRegProv. The next script illustrates how easy this is to do. Additional cautions about having a good backup and testing on other machines is applicable here! Be careful!
Though much of the script is similar to other registry provider scripts, a couple of items are important to note here. Notice in the Worker information section of the script that you have to delete the subkey before you can delete the parent key. The DeleteKey method deletes only keys. If you have a large section of the registry you need ...