• 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
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 ScriptsFix "Access to the registry key is denied" Error…
  • 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 ApplyingWindows: 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"…
  • PowerShell: Get Old AD DNS RecordsPowerShell: Get Old AD DNS Records
  • Windows 10: Install Group Policy Management ConsoleWindows 10: Install Group Policy Management Console
  • 7 Ways to Open PowerShell in Windows 107 Ways to Open PowerShell in Windows 10
  • Using PowerShell to Create Azure NSGsUsing PowerShell to Create Azure NSGs

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

  • WhatsApp 2021: What Features to Expect
  • Troubleshooting Zoom Error 1005
  • Google Duo on Android: How To Enable Data Saving Mode
  • Troubleshooting Zoom Error Code 3113
  • Windows 10: How to Fix Skypebridge.exe Errors
  • Zoom: How to Prevent Chats From Being Muted
  • Zoom: How to Receive Notifications for Messages You’re Following
  • Zoom: How to Configure the Size of Captions

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

© Copyright 2021 Technipages · All Rights Reserved · Privacy