Powershell Error: ps1 cannot be loaded because running scripts is disabled on this system

Run the below command to enable running of scripts

SetExecutionPolicy -ExecutionPolicy Unrestricted -Force

If you are running from an 64-bit Machine, ensure you run this on both versions of Powershell including the x86 version


About Sunil Padmanabhan

An Indian based out of Dubai who started traveling from 2011 and pretty much caught the travel bug. Every year presents itself as an opportunity to visit and explore a new place.

Posted on February 27, 2014, in Powershell and tagged . Bookmark the permalink. 1 Comment.

  1. Usman Ashraf

    When I am applying above command, I get following error message
    Error “SetExecutionPolicy : The term ‘SetExecutionPolicy’ is not recognized as the name of a cmdlet, function, script file,
    or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
    try again.”
    Because “-” dash is missing from the command “SetExecutionPolicy”. It should be “Set-ExecutionPolicy”. Following is correct command.
    Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force

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

%d bloggers like this: