I'm trying to modify the permissions of a registry key, however before I can do that I need to change the owner of that key.
Is it possible to do that using a powershell script? I've seen that you can modify the permissions of any group using RegistryAccessRules but I couldn't find any info about changing the owner of that key.
Any help would be much appreciated!