• 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

  • Run PowerShell as admin
    Fix "Access to the registry key is denied" Error When…
  • What is Out Of Order Execution?
    What is Out Of Order Execution?
  • Active Directory logo
    PowerShell: Check When User Last Set Active Directory…
  • Local Security Policy Header
    Local Security Policy: What Is It and How to Open It in…
  • Windows 11 Lock Header
    How to Install Group Policy Management Console in Windows 11
  • Windows 10: Install Group Policy Management Console
    Windows 10: Install Group Policy Management Console

Filed Under: Windows

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 Send HD Pictures and Videos on WhatsApp
  • How to Share Files Using Google Nearby Share
  • Android Battery Will Not Charge Fix
  • Turning on Triple Touch Zoom on Android
  • How to Connect Outlook 2023 to Gmail
  • Netflix: Change Password
  • Step-by-Step Guide: How to Use WhatsApp on Your Computer
  • Android: Enable or Disable Background Data

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

  • Set-Associative Cache
  • ASCII Character Set

© Copyright 2023 Guiding Tech Media · All Rights Reserved · Privacy