PowerShell cannot be loaded because running scripts is disabled on this system

  • Partition Wizard
  • Clone Disk
  • Resolved: Running Scripts Is Disabled on This System

By Ariel | Follow | Last Updated June 29, 2022

Cannot be loaded because running scripts is disabled on this system A great many people receive this error message when using PowerShell. If you’re also struggling to figure it out, this post from MiniTool explores effective troubleshooting methods.

On This Page :

Why Running Scripts Is Disabled on This System

PowerShell is a practical utility that you can run certain command lines to access various services of an operating system as an administrator. However, many Windows 10 users encounter the error message “cannot be loaded because running scripts is disabled on this system”.

This error often occurs when the PowerShell execution policy doesn’t allow sunning scripts. In addition, this error also appears when running a certain PowerShell script. To fix the “execution of scripts is disabled on this system” error, we explore the following troubleshooting methods.

Fix 1. Set the PowerShell Execution Policy to RemoteSigned

As you might know, the PowerShell execution policy is set to Restricted status by default. In order to run the PowerShell script, you need to create a PowerShell script first and then change the execution policy.

There are 4 major different execution policies and you can change it based on your demands.

  • Restricted: You cannot run the PowerShell script. That’s why you encounter the PowerShell running scripts is disabled on this system issue.
  • AllSigned: You can run only the PowerShell scripts that are signed by a trusted publisher.
  • RemoteSigned: You can run the downloaded scripts signed by a trusted publisher.
  • Unrestricted: You can run all Windows PowerShell scripts.

So, changing the execution policy can help you fix the error “running scripts is disabled on this system”. The first choice is to change the execution policy to RemoteSigned. Here’s how to do that:

Step 1. Right-click the Start menu and select the Windows PowerShell (Admin) option from the context menu.

Step 2. In the pop-up window, type the following command to get the list of Execution policies on your Windows 10 PC.

Get-ExecutionPolicy – List

Step 3. If you find the Execution Policy is set to either Undefined or Restricted status, you can type the following command and hit Enter t change it.

Set-ExecutionPolicy RemoteSigned

Tip: You can add this PowerShell script powershell –ExecutionPolicy ByPass –File script.psl command to bypass the above command.

Step 4. You will be asked for various permissions. Hit the Y key to say Yes to all the message individually, or hit the A key to say Yes to all messages at once.

Now, restart your computer and run Windows PowerShell script to see if the issue “running scripts is disabled on this system” is resolved.

Fix 2. Set the PowerShell Execution Policy to Unrestricted

In addition to the above method, you can try changing the Execution Policy to Unrestricted to fix the error “cannot be loaded because running scripts is disabled on this system”. To do so, follow the steps below:

Step 1. Open the Windows PowerShell as an administrator by the above method.

Step 2. Then type the command Set-ExecutionPolicy Unrestricted and hit Enter.

Step 3. Now, you can hit the Y key or the A key to change the Execution Policy.

After that, the "execution of scripts is disabled on this system" problem should be fixed. If this command line triggers an error, you can run the command Set-ExecutionPolicy Unrestricted –Force. This command will force changing the Execution Policy.

About The Author

Position: Columnist

Ariel is an enthusiastic IT columnist focusing on partition management, data recovery, and Windows issues. She has helped users fix various problems like PS4 corrupted disk, unexpected store exception error, the green screen of death error, etc. If you are searching for methods to optimize your storage device and restore lost data from different storage devices, then Ariel can provide reliable solutions for these issues. 

How do you fix Cannot be loaded because running scripts is disabled on this system?

Solution for “cannot be loaded because running scripts is disabled on this system“:.
Open PowerShell Console by selecting “Run as Administrator” and set the execution Policy with the command: Set-ExecutionPolicy RemoteSigned..
Type “Y” when prompted to proceed..

Why is running scripts disabled on this system?

While running PowerShell script, if you get running scripts is disabled on this system, it is because the PowerShell execution policy is set up by default as Restricted and doesn't allow to run script. PowerShell has built-in security features implemented.

How do I enable script running in PowerShell?

Open Run Command/Console ( Win + R ).
Type: gpedit. msc (Group Policy Editor).
Browse to Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows Components -> Windows Powershell..
Enable "Turn on Script Execution".
Set the policy as needed. I set mine to "Allow all scripts"..

How do I enable scripts in Windows 11?

How to Enable Running Scripts in Windows 11/10.
Step 1 : Go to your start menu and type “cmd”. ... .
Step 2 : Type in the first command promt “Get-ExecutionPolicy -List” and hit Enter..
Step 3 : Type in the second command “Set-ExecutionPolicy Unrestricted” and hit Enter again..
Step 4 : ... .
Step 5 :.

Toplist

Neuester Beitrag

Stichworte