Set0ExecutionPolicy : Access To The Registry Key Is Denied

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

This topic contains 0 replies, has 1 voice, and was last updated by  Webmaster 1 year, 11 months ago.

  • 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.

You must be logged in to reply to this topic.