#set ChangeMe Regkey permissions $acl = Get-Acl HKLM:\Software\ChangeMe\ $inherit = [system.security.accesscontrol.InheritanceFlags]"ContainerInherit, ObjectInherit" $propagation = [system.security.accesscontrol.PropagationFlags]"None" $rule = New-Object System.Security.AccessControl.RegistryAccessRule ("Authenticated Users","FullControl",$inherit,$propagation,"Allow") $acl.SetAccessRule($rule) $acl |Set-Acl -Path HKLM:\Software\ChangeMe\