Skip to content

Instantly share code, notes, and snippets.

@Matticusau
Last active April 20, 2018 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Matticusau/741430c29be8c60f712eb2358b3b7ce5 to your computer and use it in GitHub Desktop.
Save Matticusau/741430c29be8c60f712eb2358b3b7ce5 to your computer and use it in GitHub Desktop.
Chocolatey install script for my common packages on Windows Server
<#
Author: Matt Lavery
Date: 12/04/2018
Purpose: Provides a script to install Chocolatey and my common packages for Windows Servers
Major Version: 0.1.0
Disclaimer: This script is provided "AS IS".
History
When Version Who What
-----------------------------------------------------------------
12/04/2018 0.1.0 Mlavery Initial coding
-----------------------------------------------------------------
#>
# set the execution policy
Set-ExecutionPolicy Unrestricted -Scope Process -Force;
# download and install Chocolatey
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'));
# update the PATH variable
Set-Variable "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin";
# set the auto confirmation
choco feature enable -n allowGlobalConfirmation
#
# install applications
#
choco install GoogleChrome;
choco install visualstudiocode;
#choco install vscode-powershell;
#choco install vscode-mssql;
choco install paint.net
#
# install utilities
#
choco install 7zip.install;
choco install sysinternals;
#
# install development languages
#
#choco install git.install;
#choco install nodejs.install;
# remove the auto confirmation
choco feature disable -n allowGlobalConfirmation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment