Skip to content
LogoTechnipages
LogoTechnipages
  • Topics
        • Android
        • Browsers
        • Gaming
        • Hardware
        • Internet
        • iPhone
        • Linux
        • macOS
        • Office
        • Reviews
        • Software
        • Windows
        • Definitions
        • All Recent Posts
  • Product Reviews
  • About

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

Mitch BartlettJanuary 30, 2018 Comments (0)
Run PowerShell as admin

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.
Categories: Windows

Author Mitch Bartlett

Through my career that spans over 20 years I have become an expert in Microsoft Systems Administration, Android, and macOS. I started this site as a technical guide for myself and it has grown into what I hope is a useful knowledgebase for everyone.

You Might Also Like

  • windows 10 registry filter driver exception error

    Fix Windows 10 Registry Filter Driver Exception

    Madalina DinitaWindows
  • meet now windows 10

    What is Meet Now in Windows 10? Can I Remove It?

    Madalina DinitaWindows
  • windows 10 disable volume overlay

    Windows 10: How to Give the Taskbar a Name

    Judy SanhzWindows
  • general protection fault error

    What is a General Protection Fault Error?

    Madalina DinitaWindows

Leave a Reply

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

  • windows 11 color printing issues

    Fixing the Windows 11 Color Printing Error

  • improve privacy windows 11

    6 Tips for Improving Your Privacy in Windows 11 

  • missing boot manager in bios

    Step‑by‑Step Fix for Missing Windows Boot Manager in BIOS or UEFI

  • power query sharepoint folder error

    Power Query Not Detecting New Files in SharePoint – How to Fix

  • android device can't connect to microsoft 365

    What to Do When Your Android Device Can’t Connect to Microsoft 365

profile pic

The Experts Behind Technipages

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.

Learn More

technipages logo white
linkedin icon

Technipages is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Learn more about our mission and team here.

© 2026 Guiding Tech Media All Rights Reserved

  • About Us
  • Contact
  • Terms of Use
  • Privacy Policy

© 2026 Guiding Tech Media All Rights Reserved

Information from your device can be used to personalize your ad experience.
Do not sell my personal information.

Last Updated on January 30, 2018 by Mitch Bartlett