title: Exception calling "SetAccessRule" with "1" argument(s): "Some or all identity references could not be translated."
body: <p>I try to give full access to normal users by using this script. This PowerShell script is perfectly working in My machine. But it is not working in Other machines. Below mentioned powershell script.</p>
  <pre><code>$key = [Microsoft.Win32.Registry]::LocalMachine.OpenSubKey(&quot;SOFTWARE\Wow6432Node\Unicorn&quot;,[Microsoft.Win32.RegistryKeyPermissionCheck]::ReadWriteSubTree,[System.Security.AccessControl.RegistryRights]::ChangePermissions)
  $acl = $key.GetAccessControl()
  $rule = New-Object System.Security.AccessControl.RegistryAccessRule (&quot;.\USERS&quot;,&quot;FullControl&quot;,@(&quot;ObjectInherit&quot;,&quot;ContainerInherit&quot;),&quot;None&quot;,&quot;Allow&quot;)
  $acl.SetAccessRule($rule)
  $key.SetAccessControl($acl)
  
  Write-Host &quot;Successfully set permission to PM Registry!&quot;
  </code></pre>
  <p>Here I attached error message also.</p>
  <p><a href="https://i.stack.imgur.com/Pua5Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pua5Q.png" alt="error message" /></a></p>