Chocolatey-MachineSetup.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 paint.net | |
choco install vlc | |
choco install dotPeek | |
choco install nodejs | |
choco install msbuild.communitytasks | |
choco install foxitreader | |
choco install mRemoteNG | |
# 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