Posted By

jatubio on 02/22/15


Tagged

PowerShell


Versions (?)

Run a powershell script regardless of the local political system


 / Published in: Windows PowerShell
 

If you get "File script.ps1 cannot be loaded because the execution of scripts is disabled on this system" error on running a powershell script, you can run with the line below..

Or, you can also run powershell with admin rights and run this command: set-executionpolicy remotesigned

  1. powershell.exe -noprofile -executionpolicy bypass -file .\script.ps1

Report this snippet  

You need to login to post a comment.