Skip to content

Instantly share code, notes, and snippets.

@nhalase
Created October 14, 2020 16:57
Show Gist options
  • Save nhalase/9742d6b8c33dd4e315ed816cf431e7ec to your computer and use it in GitHub Desktop.
Save nhalase/9742d6b8c33dd4e315ed816cf431e7ec to your computer and use it in GitHub Desktop.
Environment Setup - Windows - PowerShell - Allow AllSigned Scripts to execute without confirmation prompts
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