PowerShell script cannot be loaded because the execution of scripts is disabled on this system? By default, Windows restricts running PowerShell scripts, as a security mechanism. To verify the PowerShell execution policy on your computer, you can use the Get-ExecutionPolicy cmdlet.
If the execution policy is displayed as Restricted, you can change it to other settings as shown below.
- Restricted – No scripts can be run. Windows PowerShell can be used only in interactive mode.
- AllSigned – Only scripts signed by a trusted publisher can be run.
- RemoteSigned – Downloaded scripts must be signed by a trusted publisher before they can be run.
- Unrestricted – No restrictions. All PowerShell scripts can be run.
In this tutorial we’ll show you how to change PowerShell execution policy in Windows 10 using command line, group policy or registry tweak.
Method 1: Change PowerShell Execution Policy with Command Line
Open the PowerShell as administrator. You can use the Set-ExecutionPolicy command to set the Pow