/ 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
Or, you can also run powershell with admin rights and run this command:
set-executionpolicy remotesigned