Set0ExecutionPolicy : Access To The Registry Key Is Denied

IT Support Forum Forums Windows Windows 7 Troubleshooting Set0ExecutionPolicy : Access To The Registry Key Is Denied

Viewing 0 reply threads
  • Author
    Posts
    • #1020
      Webmaster
      Keymaster

      When trying to set the execution policy of scripts using the Set-ExecutionPolicy PowerShell cmdlet, you get this error:

      Access to the registry key ‘HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell’ is denied.

      To fix this, you need to find the icon to launch PowerShell (from the start menu), right click it and click Run as administrator. Running Set-ExecutionPolicy will then run the command as a user with access to write to the registry key and will no longer error with access denied.

Viewing 0 reply threads
  • You must be logged in to reply to this topic.