Created
October 14, 2020 16:57
-
-
Save nhalase/9742d6b8c33dd4e315ed816cf431e7ec to your computer and use it in GitHub Desktop.
Environment Setup - Windows - PowerShell - Allow AllSigned Scripts to execute without confirmation prompts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-ExecutionPolicy AllSigned -Scope CurrentUser -Force | |
# -ExecutionPolicy - Specifies the execution policy. If there are no Group Policies and each scope's execution policy is set to Undefined, then Restricted becomes the effective policy for all users. | |
## AllSigned - Requires that all scripts and configuration files are signed by a trusted publisher, including scripts written on the local computer. | |
# -Scope - Specifies the scope that is affected by an execution policy. The default scope is LocalMachine. | |
## CurrentUser - Affects only the current user. | |
# -Force - Suppresses all the confirmation prompts. Use caution with this parameter to avoid unexpected results. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment