Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thiagobrabo/c2ea96983d077286fdae2d68af44249f to your computer and use it in GitHub Desktop.
Save thiagobrabo/c2ea96983d077286fdae2d68af44249f to your computer and use it in GitHub Desktop.
Choco install scripts

drawing

Chocolatey install scripts

Chocolatey é uma solução para gerenciador de pacotes para Windows. Com ele podemos criar versões e templates de instalação de perfis de estações de trabalho, gerenciar dependências, ordem de instalação e o mais importante agilizar e automatizar a ativação de features instalação de pacotes, softwares e plugins no seu computador. Par instalar o git por exemplo basta você executar : choco install git -y

Veja mais em github repo

Como instalar? (segue 2 opções)

Primeiro vamos instalar o Chocolatey Usando o cmd

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

ou, Usando o powershell em modo administrativo

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

Veja mais em Chocolatey Courses

Agora vamos ativar as features do windows para isso baixe e execute o choco script no powershell

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/thiagobrabo/c2ea96983d077286fdae2d68af44249f/raw/2ee7a7a7c784ee221711aa809340ba0239737024/dev-active-windows-features.ps1'))"

Em seguida baixe e execute o choco script para a instalação dos pacotes no powershell

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/thiagobrabo/c2ea96983d077286fdae2d68af44249f/raw/6e58a374db2d55ab9d469857fa8f9a7aebda66bc/dev-install.ps1'))"

Documentação

Veja mais na wiki

Execute choco.exe /? (ou choco.exe -h). Para comandos específicos, adicione o commando e o help´, exemplo. choco.exe install -h.

Requisitos

  • .NET Framework 4.0
  • PowerShell 2.0+
# Install script for Octadesk
# Created 01.12.2021
ECHO Active Windows Features
ECHO Configure chocolatey
choco feature enable -n allowGlobalConfirmation
#WINDOWS FEATURES
choco install TelnetClient -y -source windowsfeatures
choco install MicrosoftWindowsPowerShellV2 -y -source windowsfeatures
choco install Microsoft-Windows-Subsystem-Linux -y -source windowsfeatures
choco install VirtualMachinePlatform -y -source windowsfeatures
choco install Containers -y -source windowsfeatures
# Install script for Octadesk
# Created 01.12.2021
ECHO Installing apps
ECHO Configure chocolatey
choco feature enable -n allowGlobalConfirmation
# DEV ESSENCIAL
choco install notepadplusplus.install
choco install vscode
# choco install docker-desktop
# choco install postman
choco install microsoft-windows-terminal
# choco install git
# DEVOPS
# choco install robo3t
# choco install studio3t
# choco install redis-desktop-manager
choco install dbeaver
choco install wsl2
choco install wsl-ubuntu-2204
choco install lens
choco install openvpn-connect
# choco install argocd-cli
choco install curl
choco install nmap
#MISCELANEOUS
choco install 7zip
choco install zoom
choco install slack
choco install discord
# BROWNSERS
choco install google-chrome-x64
choco install Firefox
choco install adblockplusfirefox
choco install adblockpluschrome
choco install brave
# FRONTEND
#choco install blablá
# BACKEND
#choc install blablablá
# VSCODE EXTENSIONS
choco install vscode-gitlens
choco install vscode-icons
choco install vscode-codespellchecker
choco install vscode-markdownlint
choco install vscode-kubernetes-tools
choco install vscode-yaml
choco install vscode-chrome-debug
#choco install vscode-firefox-debug
# OPTIONAL PACKAGES ADDON'S
choco install Everything
choco install notion
#choco install google-backup-and-sync
choco install ChocolateyGUI
choco install tabby
choco install notepadplusplus-npppluginmanager
choco install powertoys
choco install devtoys
choco feature disable -n allowGlobalConfirmation
# Install script for Octadesk
# Created 01.12.2021
ECHO Installing apps
ECHO Configure chocolatey
choco feature enable -n allowGlobalConfirmation
# LIVE STREAM
choco install obs-studio
choco install streamlabs-obs
# EDITORS
choco install kdenlive
# GAME MANAGER
choco install steam
choco install retroarch
choco install epicgameslauncher
# choco install rockstar-launcher
choco install amazongames
# choco install nvidia-geforce-now
choco install origin
# choco install ubsoft-connect
choco install geforce-experience
# GAME TOOLS
choco install ds4windows
choco install moonlight-qt.install
choco install cpu-z
choco install gpu-z
choco install msiafterburner
choco install furmark
# OPTIONAL PACKAGES ADDON'S
choco install anydesk.portable
choco install opera-gx
choco install obsidian
choco feature disable -n allowGlobalConfirmation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment