/ 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
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
powershell.exe -noprofile -executionpolicy bypass -file .\script.ps1
Comments
