title: Set-ExecutionPolicy unrestricted permission denied
body: <p>I am trying to set the execution policy to <code>Unrestricted</code>, but I'm getting the following error:</p>
  <pre class="lang-sh prettyprint-override"><code>PS&gt; Set-ExecutionPolicy Unrestricted
  Execution Policy Change
  The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
  you to the security risks described in the about_Execution_Policies help topic at
  http://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
  [Y] Yes  [N] No  [S] Suspend  [?] Help (default is &quot;Y&quot;): Y
  Set-ExecutionPolicy : Access to the registry key
  'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell' is denied. To change the execution
  policy for the default (LocalMachine) scope, start Windows PowerShell with the &quot;Run as administrator&quot; option. To
  change the execution policy for the current user, run &quot;Set-ExecutionPolicy -Scope CurrentUser&quot;.
  At line:1 char:1
  + Set-ExecutionPolicy unrestricted
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : PermissionDenied: (:) [Set-ExecutionPolicy], UnauthorizedAccessException
      + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.SetExecutionPolicyComma
     nd
  </code></pre>