Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Chocolatey-MachineSetup.ps1
#Administrator privileges check
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(`
[Security.Principal.WindowsBuiltInRole] "Administrator"))
{
Write-Warning "You do not have Administrator rights!`nPlease run the build shell as administrator!"
exit
}
$scriptPath = $MyInvocation.MyCommand.Path
$scriptDirectory = Split-Path $scriptPath
$customDir = Resolve-Path (Join-Path ($scriptDirectory) "..\")
cd $customDir
mkdir "c:\software"
mkdir "c:\downloads"
mkdir "c:\temp"
Write-Host "Welcome to chrismckelts Chocolatey install"
Write-Host "---------------------------------"
get-item "$*.bat"
Write-Host "---------------------------------"
ECHO "Installing PsGet and PS plugins"
(new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex
Install-Module pscx
ECHO "FINISHED - Installing PsGet and PS plugins - FINISHED"
ECHO "Installing Chocolatey and required apps"
iex ((new-object net.webclient).DownloadString("https://chocolatey.org/install.ps1"))
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";" + $env:systemdrive + '\chocolatey\bin', [System.EnvironmentVariableTarget]::Machine )
choco feature enable -n=allowGlobalConfirmation
choco install cmder
choco install 7zip
choco install cpu-z
choco install procmon
choco install procexp
choco install GoogleChrome
choco install brave
choco install git
choco install sourcetree
choco install grepwin
choco install notepadplusplus
choco install vscode
choco install linqpad
choco install postman
choco install fiddler
choco install paint.net
choco install vlc
choco install dotPeek
choco install nodejs
choco install msbuild.communitytasks
choco install keepass
choco install foxitreader
choco install mRemoteNG
choco install openlivewriter
# azure manual install
# https://chocolatey.org/packages?q=azure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment