-
GET/SET Windows PowerShell Execution policy
Get-ExecutionPolicy. If it returnsRestricted, then runSet-ExecutionPolicy AllSignedorSet-ExecutionPolicy Bypass -Scope Process. -
Install, PowerShell execute:
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))More on PwerShell Execution policy - https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-6
https://stackoverflow.com/a/30428182
Install or update without confirmation prompts
# `-y` will skip the prompts for a given command
# Disable for all future runs
choco feature enable -n=allowGlobalConfirmationTo enable installation confirmation
choco feature disable -n=allowGlobalConfirmationchoco install poshgit
# or shorhand `cinst poshgit` # Git
cinst git poshgit sourcetree
# VS Code pack
cinst vscode vscode-eslint vscode-editorconfig vscode-icons vscode-markdownlint
# vscode-gitlens vscode-gitignore vscode-gitattributes
# JavaScript, Node
cinst nodejs-lts yarn gulp-cli
# nodejs
# Browsers
cinst googlechrome firefox opera
# ie11 brave safari
# AWS
cinst awscli
# awstools.powershell cloudberryexplorer.amazons3
# cloudberryexplorer.s3
# Text Editing
cinst notepadplusplus
# Other
cinst nexus-repositoryEnvironment Vars (like PATH) have changed. Close/reopen your shell to see the changes (or in powershell/cmd.exe just type refreshenv)