PS2EXE.ps1 Cannot Be Loaded Because Running Scripts Is Disabled On This System

IT Support Forum Forums Windows Windows 7 Troubleshooting PS2EXE.ps1 Cannot Be Loaded Because Running Scripts Is Disabled On This System

Tagged: ,

This topic contains 0 replies, has 1 voice, and was last updated by  Webmaster 1 year, 11 months ago.

  • Author
    Posts
  • #1019

    Webmaster
    Keymaster

    When you run the createdemo.bat file that comes with PS2EXE, you get this error in PowerShell:

    ps2exe.ps1 cannot be loaded because running scripts is disabled on this system

    To fix the error, you need to enable scripts to run on the system with this PowerShell cmdlet (run as administrator):

    Set-ExecutionPolicy Unrestricted

    You will then be able to run the createdemo.bat file without the error saying that the ps1 file can’t be loaded.

You must be logged in to reply to this topic.