• Skip to main content
  • Skip to primary sidebar

Technipages

Tutorials and fixes for smartphone, gadget, and computer problems

  • Topics
    • Android
    • Gaming
    • Hardware
    • Internet
    • iOS
    • MacOS
    • Office
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About Technipages

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

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

  • Error: "User username (SessionId=2) could not be logged off. Access is denied."
    Error: "User username (SessionId=2) could not be logged off.…
  • Acrobat Reader 11: Fix "There was an error opening this document. Access denied."
    Acrobat Reader 11: 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…
  • Fix Sublime Text Error Permission Denied
    Fix Sublime Text Error Permission Denied
  • Teams: Manage External Access With PowerShell
    Teams: Manage External Access With PowerShell
  • What Is the Windows Registry and How to Access It?
    What Is the Windows Registry and How to Access It?
  • How to Disable Access to the Registry Editor - Windows 10
    How to Disable Access to the Registry Editor - Windows 10

Filed Under: Windows Tagged With: PowerShell

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

  • DRAM on an SSD: Is It Something You want?
  • 5 Free Android Apps to Remove Red Eye
  • Windows 11: How to Change the Primary Mouse Button
  • Windows 11: Use Fonts and Make Your Text Fantastic
  • Windows 11: How to Manage the Recycling Bin
  • How to Enable Dark Mode in Firefox
  • Windows 11: How to Add Clocks with Different Time Zones
  • Google Assistant: How to Never Miss a Birthday

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 2022 Technipages · All Rights Reserved · Privacy