PowerShell – Set Execution Policy Permissions

|

In order for PowerShell to run scripts you need to grant it specific permissions.

  • Restricted
    • No scripts can be run. Windows PowerShell can be used only in interactive mode.
  • AllSigned
    • Only scripts signed by a trusted publisher can be run.
  • RemoteSigned
    • Downloaded scripts must be signed by a trusted publisher before they can be run.
  • Unrestricted
    • No restrictions; all Windows PowerShell scripts can be run.
Get-ExecutionPolicy
set-executionpolicy remotesigned

Reference: https://technet.microsoft.com/en-us/library/ee176961.aspx

All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.