• 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
How to Set PowerShell Execution Policy

How to Set PowerShell Execution Policy

By Mitch Bartlett Leave a Comment

You may have to set the PowerShell execution policy when attempting to run PowerShell scripts to allow the script to run. Otherwise you may be greeted with a “scriptname cannot be loaded because running scripts is disabled on this system.” error message.

Use this tutorial to allow PowerShell script execution on your Windows system.

First, be sure that the script is not blocked from executing with these steps:

  1. Right-click on the icon of the script, then select “Properties“.
  2. Ensure the “Unblock” checkbox is selected, then select “OK“.

Option 1 – PS Command

  1. Select the “Start” button and type “powershell“.
  2. Right-click “Windows PowerShell“, then select “Run as Administrator“.
  3. Type the following, then press “Enter“:
    Set-ExecutionPolicy RemoteSigned -Force

Option 2 – Registry Key

  1. Hold down the Windows Key, then press “R” to bring up the Run window.
  2. Type “regedit“, then select “OK“:
  3. Navigate to the following:
    • HKEY_LOCAL_Machine
    • SOFTWARE
    • Microsoft
    • PowerShell
    • 1
    • Shelllds
    • Microsoft.Powershell
  4. Right-click the “Microsoft.PowerShell” folder, then select “New” > “String value“.
  5. Type “ExecutionPolicy“, then press “Enter” to set the string name.
  6. Open “ExecutionPolicy“, then type “RemoteSigned” in the “Value data” field.
  7. Select “OK“.

Option 3 – Group Policy

The settings in Group Policy to set the execution policy can be found in Group Policy Management Editor at this path:

  • Policies > Administrative Templates > Windows Components > Windows PowerShell > Turn on Script Execution

 

You Might Also Like

  • 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…
  • Why is a “No-logs” Policy an Important Part of a VPN?
    Why is a “No-logs” Policy an Important Part of a VPN?
  • Windows Stuck at "Applying Group Policy"
    Windows Stuck at "Applying Group Policy"
  • Windows: How to Prevent Group Policy From Applying
    Windows: How to Prevent Group Policy From Applying
  • "Can't take screenshot due to security policy" Message in Android
    "Can't take screenshot due to security policy" Message in…
  • Your Organization’s Policy Requires This Link to Expire
    Your Organization’s Policy Requires This Link to Expire
  • Windows 10: Install Group Policy Management Console
    Windows 10: Install Group Policy Management Console
  • PowerShell: Get Old AD DNS Records
    PowerShell: Get Old AD DNS Records
  • Fix: Windows Cannot Find Powershell.exe
    Fix: Windows Cannot Find Powershell.exe

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

  • Windows 11: How to Fix Windows 11 Won’t Connect to a Network
  • What to Do When Firefox Won’t Load a Page
  • Chrome: How to Refresh Various Tabs Simultaneously
  • The Latest Foldable Phones – A Look At The Huawei Mate X2
  • Everything Announced at Google I/O 2022 That You Should Care About
  • How to Build the Best High-Spec PC for Your Budget
  • Google Shows Off Pixel 7 and Pixel Watch Ahead of Fall Launch
  • Windows 11: How to View Saved Passwords

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.

© Copyright 2022 Technipages · All Rights Reserved · Privacy