• Skip to main content
  • Skip to primary sidebar

Technipages

Tutorials and fixes for smartphone, gadget, and computer problems

  • Topics
    • Android
    • Browsers
    • Gaming
    • Hardware
    • Internet
    • iPhone
    • Linux
    • macOS
    • Office
    • Reviews
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About
How to Set PowerShell Execution Policy

How to Set PowerShell Execution Policy

December 3, 2018 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…
  • What is Out Of Order Execution?
    What is Out Of Order Execution?
  • 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
  • Android: Fix "Can't take screenshot due to security policy" Message
    Android: Fix "Can't take screenshot due to security policy"…
  • Your Organization’s Policy Requires This Link to Expire
    Your Organization’s Policy Requires This Link to Expire

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

  • How to Print Labels from Excel Using MS Word Mail Merge
  • What Is NVMe Over TCP (NVMe/TCP)
  • Android Mobile Hotspot: How to Change the Password and Name
  • Windows 10: How to Force Quit and App
  • What is Dumpster Diving?
  • How to Download iOS 16 Beta 3 on iPhone or iPad
  • What is a Security Compromise?
  • Mastodon: How to DM Someone

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 2023 Guiding Tech Media · All Rights Reserved · Privacy