Script a changing of the owner on regkeys?
I am having some problems with sophos so have needed to uninstall and reinstall it. Because Sophos can be a pain to uninstall on some workstation, Sophos tech support has supplied me with a script that un installs Sophos to apply on startup.
I am still having problems uninstalling with the script on a number of workstations. And I found that there seem to be some corrupt reg keys that it canít delete.
When I manually load regedit and try to delete the keys I still canít. I then checked the permissions and the owner of the reg keys did not exist. After adding a owner I could manually delete the corrupt keys.
Is there any way to script a changing of the owner on regkeys? I did look at regini.exe but that only changes permissions and not the owner.