• Skip to main content
  • Skip to primary sidebar

Technipages

Smart phone, gadget and computer tutorials

  • Topics
    • Android
    • Gaming
    • Hardware
    • Internet
    • iOS
    • MacOS
    • Office
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About
Fix “Access to the registry key is denied” Error When Setting Policy For PowerShell Scripts

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

Posted on 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 11: Fix "There was an error opening this document. Access denied."Acrobat Reader 11: Fix "There was an error opening…
  • Error: "User username (SessionId=2) could not be logged off. Access is denied."Error: "User username (SessionId=2) could not be…
  • How to Set PowerShell Execution PolicyHow to Set PowerShell Execution Policy
  • Windows: "Access Denied" When Running AttribWindows: "Access Denied" When Running Attrib
  • Windows 10: Access Denied When Modifying HOSTS or LMHOSTS fileWindows 10: Access Denied When Modifying HOSTS or…
  • How to Disable Access to the Registry Editor - Windows 10How to Disable Access to the Registry Editor - Windows 10
  • PS3: Error "You cannot play this game at the current video output setting (80028F10)"PS3: Error "You cannot play this game at the current…
  • Can't Delete Folder "You have been denied permission" Fix for WindowsCan't Delete Folder "You have been denied…

Filed Under: Windows Tagged With: PowerShell

Reader Interactions

Did this help? Let us know! Cancel reply

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 Use Vivaldi Browser on Android
  • Google Sheets: Change Graph Colors
  • Visual Studio: Open Solution Explorer
  • Visual Studio: Reset All Settings
  • Android: How to Recover Deleted Photos
  • Windows 10: Keep a Window Always On Top
  • What Are Wi-Fi Dead Zones and How to Avoid Them
  • How to Transfer Contacts From One Gmail Account to Another

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.

Follow me on Twitter, or visit my personal blog.

You May Also Like

  • Random Access Memory (RAM)

© Copyright 2019 Technipages · All Rights Reserved · Privacy