How to Fix : Script cannot be loaded because the execution of scripts is disabled on this system.

You can fix this issue in lot of different ways depending on your environment by running below command in powershell


Set-ExecutionPolicy RemoteSigned

RemoteSigned  – all scripts you created yourself will be run, all scripts downloaded from the internet will need to be signed by a trusted publisher


Set-ExecutionPolicy unrestricted

Unrestricted – Executes any script


ExecutionPolicy ByPass -File “Script name”

Bypass a particular script

If you are in controlled or restricted environment


Set-ExecutionPolicy -Scope “CurrentUser” -ExecutionPolicy “RemoteSigned”


Set-ExecutionPolicy -Scope “CurrentUser” -ExecutionPolicy “Unrestricted”


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s