Run a powershell script regardless of the local political system


/ Published in: Windows PowerShell
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. powershell.exe -noprofile -executionpolicy bypass -file .\script.ps1

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.