Last active
December 31, 2015 23:55
-
-
Save HowlingMind/c2c6a1454cf798966b1c to your computer and use it in GitHub Desktop.
Boxstarter - Personal Development Machine
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
# A simple BoxStarter script for use with http://boxstarter.org/WebLauncher | |
# Updates a Windows machine and installs a range of developer tools | |
# Run with the command: | |
# START http://boxstarter.org/package/url?https://gist.githubusercontent.com/HowlingMind/c2c6a1454cf798966b1c/raw/ecb7f7584850e20f1f05dc979d7e2578e6bca438/BoxstarterWin7DevMachine.ps1 | |
# Boxstarter URL | |
# http://boxstarter.org/package/nr/url? | |
# Boxstarter options | |
$Boxstarter.RebootOk=$true # Allow reboots? | |
$Boxstarter.NoPassword=$true # Is this a machine with no login password? | |
#$Boxstarter.AutoLogin=$false # Save my password securely and auto-login after a reboot | |
# Choco / Boxstarter config | |
#Set-BoxstarterConfig -NugetSources "http://choco.directs.com/nuget;http://chocolatey.org/api/v2;http://www.myget.org/F/boxstarter/api/v2" | |
#choco sources add -name NuGet -source https://nuget.org/api/v2/ | |
#choco sources add -name DS -source http://choco.directs.com/nuget | |
# Show more info for files in Explorer | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
Enable-RemoteDesktop | |
Disable-UAC | |
Update-ExecutionPolicy Unrestricted # Allow running PowerShell scripts | |
Set-TaskbarOptions -Size Small -Lock -Dock Bottom | |
#Allow passwordless remote desktop | |
Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\Lsa -Name LimitBlankPasswordUse -Value 0 | |
# Default to the desktop rather than application launcher Win8 | |
# Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst | |
################### | |
#### Dev Tools #### | |
################### | |
choco install visualstudio2015community | |
if (Test-PendingReboot) { Invoke-Reboot } | |
choco install android-sdk | |
choco install androidstudio | |
choco install sourcetree | |
choco install webstorm | |
choco install intellijidea-community | |
#choco install resharper | |
choco install NugetPackageExplorer | |
############### | |
#### Utils #### | |
############### | |
#choco install keepass.install | |
choco install cmder | |
choco install poshgit | |
choco install ruby2.devkit | |
choco install powertab | |
choco install cygwin | |
choco install VirtualCloneDrive | |
choco install sublimetext3 | |
choco install sublimetext3.packagecontrol | |
#choco install notepad2 | |
choco install ilspy | |
choco install sysinternals | |
choco install git | |
choco install git-credential-winstore | |
#choco install githubforwindows | |
choco install Powershell | |
choco install scriptcs | |
choco install ConsoleZ.WithPin | |
choco install ConsoleZ.Settings -Params 'url=https://rawgit.com/JCapriotti/Boxstarter-Files/master/console.xml' | |
#choco install slickrun | |
choco install nodejs.install | |
choco install ruby | |
choco install curl | |
choco install putty | |
choco install python2 | |
choco install notepadplusplus | |
choco install googlechrome | |
# Ninite stuff | |
# https://ninite.com/?select=.net4.5.2-7zip-chrome-evernote-filezilla-foxit-gimp-java8-jdkx8-launchy-paint.net-windirstat-winmerge | |
################################# | |
#### NOW get windows updates #### | |
################################# | |
Enable-MicrosoftUpdate | |
Install-WindowsUpdate -AcceptEula | |
if (Test-PendingReboot) { Invoke-Reboot } | |
######################################## | |
####Dev Tools that need intervention#### | |
######################################## | |
choco install xamarin | |
################# | |
#### cleanup #### | |
################# | |
del C:\eula*.txt | |
del C:\install.* | |
del C:\vcredist.* | |
del C:\vc_red.* | |
# Copy backup directory | |
#Copy-Item \\ds\home\jasonc\Backup\* C:\ -Force -Recurse | |
# Create scheduled tasks | |
#$taskDir = "C:\Utility\ScheduledTasks" | |
#schtasks /create /xml "$taskDir\Backup.xml" /tn "Backup Files" | |
#schtasks /create /xml "$taskDir\LogStuff.xml" /tn "Log Stuff" | |
# Text file associations | |
$textEditor = "$env:programfiles(x86)\Notepad++\Notepad++.exe" | |
Install-ChocolateyFileAssociation ".txt" $textEditor | |
Install-ChocolateyFileAssociation ".xml" $textEditor | |
Install-ChocolateyFileAssociation ".nuspec" $textEditor | |
Install-ChocolateyFileAssociation ".config" $textEditor | |
# Fix missing "New Text Document" in Explorer context menu (https://github.com/chocolatey/chocolatey/issues/563) | |
reg add HKCR\.txt /ve /f /d txtfile | |
# VS Extensions | |
Install-ChocolateyVsixPackage "PowerShell Tools" http://visualstudiogallery.msdn.microsoft.com/c9eb3ba8-0c59-4944-9a62-6eee37294597/file/112013/7/PowerShellTools.vsix | |
Install-ChocolateyVsixPackage "Productivity Power Tools" http://visualstudiogallery.msdn.microsoft.com/dbcb8670-889e-4a54-a226-a48a15e4cace/file/117115/3/ProPowerTools.vsix | |
# Taskbar pins | |
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)\Google\Chrome\Application\chrome.exe" | |
Install-ChocolateyPinnedTaskBarItem "$env:windir\explorer.exe" | |
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe" | |
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)\JetBrains\WebStorm 9.0.3\bin\WebStorm.exe" | |
Install-ChocolateyPinnedTaskBarItem "$env:ChocolateyInstall\bin\ILSpy.exe" | |
#Install-ChocolateyPinnedTaskBarItem "$env:programfiles\GIMP 2\bin\gimp-2.8.exe" | |
Install-ChocolateyPinnedTaskBarItem "$env:windir\system32\inetsrv\InetMgr.exe" | |
# Disable offline files | |
#sc config CscService start= disabled | |
# Create startup command; link to file pulled down from backup. | |
#New-Item -Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup" -Name "jason-startup.cmd" -ItemType "File" -Value "@powershell -NoProfile -ExecutionPolicy unrestricted -Command `"C:\Utility\Tools\startup.ps1`"" | |
# Enable Active Directory tools | |
#dism /online /enable-feature /featurename:RemoteServerAdministrationTools /featurename:RemoteServerAdministrationTools-Roles /featurename:RemoteServerAdministrationTools-Roles-AD /featurename:RemoteServerAdministrationTools-Roles-AD-DS /featurename:RemoteServerAdministrationTools-Roles-AD-DS-SnapIns /featurename:RemoteServerAdministrationTools-Roles-AD-Powershell /featurename:RemoteServerAdministrationTools-Roles-AD-DS-AdministrativeCenter | |
# Other Windows Features | |
#dism /online /enable-feature /featurename:IIS-WindowsAuthentication | |
# Loopback thing... | |
#reg add HKLM\System\CurrentControlSet\services\LanmanServer\Parameters /v DisableStrictNameChecking /t REG_DWORD /d 1 | |
#reg add HKLM\System\CurrentControlSet\Control\Lsa\MSV1_0 /v BackConnectionHostNames /t REG_MULTI_SZ /d springfield.localhost | |
# Set Chrome as default browser | |
# "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --make-default-browser --no-default-browser-check |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment