Powershell scripts can be run on any Windows system as long as they are run from the ISE by pushing the green play button. As soon as you want to run it from the cmd or the desktop file you'll get this error:

script1.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170

This error happens due to a security policy that won't let scripts be executed on your system without you having approved of it. You can do so by opening up a PowerShell window with administrative rights (search for PowerShell in the main menu and select Run as administrator from the context menu) and entering:

set-executionpolicy remotesigned
Windows Powershell – “Running scripts is disabled on this system”
Tagged on:                 

10 thoughts on “Windows Powershell – “Running scripts is disabled on this system”

  • November 9, 2013 at 3:38 pm
    Permalink

    Thanks!

    This was not easy. I had to change the executionpolicy to “remotesigned” (run “Set-ExecutionPolicy -Scope CurrentUser” an enter “remotesigned”. Change back to “Restricted” when you are done.)

    Also, I wanted to delete the “Camera” Metro App. It was not listed. Argh!

    Microsoft is really making things hard theese days.

    Reply
  • March 19, 2017 at 7:59 pm
    Permalink

    Run shell as Administrator.

    > Get-ExecutionPolicy

    > Set-ExecutionPolicy remoteSigned

    Done.

    To Undo
    > Set-ExecutionPolicy restricted

    Reply
  • October 1, 2018 at 10:41 pm
    Permalink

    please windeo 10 update

    Reply
    • October 2, 2018 at 9:40 am
      Permalink

      This should work on Windows 10 as well.

      Reply
  • December 10, 2019 at 9:33 pm
    Permalink

    This did the trick for me:

    Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

    Reply
  • February 28, 2020 at 6:43 am
    Permalink

    Me funciono muchas gracias!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*