💽Edit-ExecutionPolicy
Setting an “Unrestricted” execution policy on a Windows client machine
Set-ExecutionPolicy
Click the Windows Start button, right-click the Windows PowerShell application and select Run as Administrator
Code
Set-ExecutionPolicy Unrestricted
Example
PS C:\WINDOWS\system32> Set-ExecutionPolicy Unrestricted
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing
the execution policy might expose you to the security risks described in the
about_Execution_Policies help topic at https:/go.microsoft.com/fwlink/?LinkID=135170.
Do you want to change the execution policy?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N")
: y
PS C:\WINDOWS\system32> Get-ExecutionPolicy
Unrestricted
Note:
Default policy is “Restricted”: the system will neither load PowerShell configuration files nor run PowerShell scripts
PDF page 86
Last updated