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 dotnet4.5
choco install 7zip
choco install slickrun
choco install fiddler
choco install cpu-z
choco install GoogleChrome
#choco install Firefox
choco install grepwin
choco install ConEmu
choco install notepadplusplus
choco install paint.net
choco install linqpad
#choco install PowerGUI
choco install P4Merge
#choco install qttabbar
choco install fiddler
choco install sourcetree
choco install vlc
choco install nodejs.install
choco install msbuild.communitytasks
choco install procmon
choco install dotPeek
choco install sourcecodepro
choco install keepass
#choco install logparser1
#choco install VirtualCloneDrive
choco install foxitreader
choco install git-credential-winstore
choco install mRemoteNG
choco install procexp
#choco install googledrive
#https://github.com/adobe/Source-Code-Pro
ECHO "Install dev fonts from - https://github.com/adobe/Source-Code-Pro"
ECHO "FINISHED - Installing Chocolatey and required apps - FINISHED"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.