VBScript that will query registry permissions
Posted on 2009-02-13
We have a bad application in our environment which has broken the permissions on a registry key.
I am looking to create a VBScript that will check if 'SYSTEM' has permissions on a registry key HKLM\Software\Application\Component
If SYSTEM does not have permission on the key then I want it to delete from HKLM\Software\Application down as the application will be reinstalled and it will repopulate the key with the correct permissions. As the permissions have been stripped out, the installation will not work.