title: Set-Acl : Requested registry access is not allowed
body: <p>After reading
  <a href="https://serverfault.com/q/375911">this question</a>
  and
  <a href="http://blogs.technet.com/b/heyscriptingguy/archive/2008/04/15/how-can-i-use-windows-powershell-to-determine-the-owner-of-a-file.aspx" rel="nofollow noreferrer">this blog post</a>
  I came up with these commands</p>
  
  <pre class="lang-sh prettyprint-override"><code>Set-Location HKLM:\Software\Classes\cmdfile\ShellEx\PropertySheetHandlers
  $am = New-Object Security.Principal.NTAccount 'BUILTIN', 'Administrators'
  $ke = Get-Acl 'ShimLayer Property Page'
  $ke.SetOwner($am)
  Set-Acl -AclObject $ke -Path 'ShimLayer Property Page'
  </code></pre>
  
  <p>However when I run them I get this message</p>
  
  <pre><code>Set-Acl : Requested registry access is not allowed.
  </code></pre>
  
  <p>How can I change the owner of this key?</p>