I'm attempting to automate the Jenkins Windows slave installation and I need to change the owner and permission of some keys in order to allow read/write access to certain keys for the administrator user. See Jenkins docs for details.
I have found the registry_key resource but this does not mention how to adjust the actual permissions of registry keys. I don't need to create/read/update or delete keys - just adjust the permissions.
Is there a way to do this from within Chef? Or, if not, is there a way to do this via a Powershell script?