Skip to content

Instantly share code, notes, and snippets.

@ksmyth
Last active November 18, 2015 17:57
Show Gist options
  • Save ksmyth/f40c72151fb243e93d89 to your computer and use it in GitHub Desktop.
Save ksmyth/f40c72151fb243e93d89 to your computer and use it in GitHub Desktop.
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$true
# choco config set cacheLocation \\longbox\share\chocolately_cache
$disk = Get-WmiObject Win32_LogicalDisk -Filter "DeviceID='C:'" | Select-Object Size,FreeSpace
if ($disk.FreeSpace -lt (5 * 1024 * 1024 * 1024)) {
Out-File -Encoding utf8 -FilePath extend.diskpart -InputObject "sel vol c: `nextend size=5000 `n"
diskpart /s extend.diskpart
}
Install-WindowsUpdate -AcceptEula
if (Test-PendingReboot) { Invoke-Reboot }
Install-WindowsUpdate -AcceptEula
if (Test-PendingReboot) { Invoke-Reboot }
choco install -y git
choco install -y sysinternals classic-shell notepadplusplus.install 7zip.install
choco install -y windbg
choco install -y jdk7
setx JAVA_HOME (ls 'C:\Program Files\Java\jdk7*' | % FullName | select -last 1) /M
choco install -y wixtoolset
if (!(Test-Path -Path 'C:\Program Files\GME' )) {
(new-object net.webclient).DownloadFile('http://repo.isis.vanderbilt.edu/GME/15.5.8/GME_x64-15.5.8.msi', 'c:/GME_x64-15.5.8.msi')
msiexec /i c:\GME_x64-15.5.8.msi /quiet /qn /norestart
}
if (!(Test-Path -Path 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin' )) {
pushd \\longbox\share\installers\VS_2015_Community
.\vs_community.exe /passive /norestart /InstallSelectableItems NativeLanguageSupport_Group
popd
}
if (Test-PendingReboot) { Invoke-Reboot }
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
C:\Windows\System32\cleanmgr.exe /d c:
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Set-WindowsExplorerOptions -EnableShowFileExtensions -EnableShowHiddenFilesFoldersDrives -DisableShowProtectedOSFiles
Set-StartScreenOptions -EnableBootToDesktop
Install-ChocolateyPinnedTaskBarItem "${env:ProgramFiles(x86)}\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe"
Install-ChocolateyPinnedTaskBarItem "${env:ProgramFiles(x86)}\GME\bin\GME.exe"
TZUTIL /s "Central Standard Time"
Enable-RemoteDesktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment