• Skip to main content
  • Skip to primary sidebar

Technipages

Tutorials and fixes for smartphone, gadget, and computer problems

  • Topics
    • Android
    • Browsers
    • Gaming
    • Hardware
    • Internet
    • iPhone
    • Linux
    • macOS
    • Office
    • Reviews
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About

Fix “Access to the registry key is denied” Error When Setting Policy For PowerShell Scripts

January 30, 2018 by Mitch Bartlett Leave a Comment

When trying to set the execution policy for PowerShell scripts on your Windows system, you may get the following error:

Set-ExecutionPolicy : Access to the registry key
‘HKEY_LOCAL_MACHINE\SOFTWARE\ Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell’ is denied.
At line:1 char:1

This error is often displayed because you are not executing the command as an administrator. To solve this issue, try the following.

    1. Ensure you are logged into the computer with local administrator rights.
    2. Right-click or hold “Shift” and select “Windows PowerShell“ > “Run as administrator“.
      Run PowerShell as admin
    3. Now try to run the same set-executionpolicy  command to change the execution policy. It should complete successfully.

You Might Also Like

  • Acrobat Reader: Fix "There was an error opening this document. Access denied."
    Acrobat Reader: Fix "There was an error opening this…
  • How to Set PowerShell Execution Policy
    How to Set PowerShell Execution Policy
  • Windows: "Access Denied" When Running Attrib
    Windows: "Access Denied" When Running Attrib
  • Windows 10: Access Denied When Modifying HOSTS or LMHOSTS file
    Windows 10: Access Denied When Modifying HOSTS or LMHOSTS…
  • Windows: "User username (SessionId=2) could not be logged off. Access is denied." Fix
    Windows: "User username (SessionId=2) could not be logged…
  • Fix Sublime Text Error Permission Denied
    Fix Sublime Text Error Permission Denied

Filed Under: Windows

Reader Interactions

Did this help? Let us know!

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • How to Fix Explorer.exe Doesn’t Load at Startup Issue
  • How to Enable/Disable Efficiency Mode in Windows 11
  • How to Create and Edit a Playlist on YouTube Music
  • Microsoft Edge Collections: What It is and How to Use It
  • YouTube Premium: How to Disable/Enable Background Playback
  • How to Update Apps on iPad (iPadOS 16.3.1)
  • How to Fix Outlook Rules Are Not Supported for This Account
  • How to Stop Windows 11 Updates

Who’s Behind Technipages?

Baby and Daddy My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

You May Also Like

  • Random Access Memory (RAM)

© Copyright 2023 Guiding Tech Media · All Rights Reserved · Privacy