How to enable script execution in PowerShell?

If you are getting an error like “execution of scripts is disabled on this system”, that means script execution is disabled in your system using PowerShell execution policy. In order to enable script execution you need to set the execution policy from Restricted to ByPass (safe) or Unrestricted (Unsafe).

If you don’t have proper access to set execution policy, then simply bypass for a specific script that you want to execute.

Leave a Reply