To solve this issue, try the following.
Home » PostsFix “Access to the registry key is denied” Error When Setting Policy For PowerShell ScriptsHow to solve a problem where you get an "Access to the registry key" error when trying to change the policy for PowerScript execution.January 31, 2018 · 1 min · 7 words · Joseph MorrisonTo solve this issue, try the following.