Skip to content

Instantly share code, notes, and snippets.

@feffi
Last active November 14, 2016 19:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feffi/11c3c8b374405c8be9d69366c18380af to your computer and use it in GitHub Desktop.
Save feffi/11c3c8b374405c8be9d69366c18380af to your computer and use it in GitHub Desktop.
## http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/feffi/11c3c8b374405c8be9d69366c18380af/raw/b71c04a5732f6288df177c2b834ddc5eef7d540e/boxstarter.sh
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$false # Save my password securely and auto-login after a reboot
# Update Windows and reboot if necessary
if (Test-PendingReboot) { Invoke-Reboot }
#Install-WindowsUpdate -AcceptEula
#if (Test-PendingReboot) { Invoke-Reboot }
try {
#Install-WindowsUpdate -AcceptEula
#Update-ExecutionPolicy Unrestricted
#Move-LibraryDirectory "Personal" "$env:UserProfile\google drive\documents"
#Move-LibraryDirectory "My Pictures" "D:\Pictures"
#Move-LibraryDirectory "My Video" "D:\Videos"
#Move-LibraryDirectory "My Music" "D:\Music"
#Move-LibraryDirectory "Downloads" "D:\Downloads"
#Move-LibraryDirectory "Personal" "D:\Documents"
#Move-LibraryDirectory "Desktop" "D:\Desktop"
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Set-TaskbarSmall
#Disable-UAC
# prerequisites
#cinst vcredist2005
#cinst vcredist2008
#cinst vcredist2010
#cinst vcredist2012
#cinst sysinternals
#cinst javaruntime -y
#cinst procexp -y
cinst wincommandpaste
cinst cmder
cinst cygwin
cinst cyg-get
cinst linkshellextension
# development
cinst SublimeText3
cinst sublimetext3.packagecontrol
cinst atom
cinst mysql
cinst mysql.workbench
cinst heidisql
cinst wireshark
cinst git
cinst kdiff3
cinst putty
cinst openssl.light
cinst filezilla
cinst tortoisesvn
cinst virtualbox
cinst VirtualBox.ExtensionPack
cinst winscp
cinst notepadplusplus
cinst notepadplusplus.install
cinst intellijidea-ultimate -version 14.1
cinst logparser
cinst logparser.lizardgui
# browsers
cinst firefox
cinst google-chrome-x64
# tools
cinst autohotkey
cinst 7zip.install
cinst 7zip
cinst f.lux
cinst mactype
cinst vlc
cinst paint.net
cinst btsync
cinst keepass
cinst keepass.install
cinst keepass-keepasshttp
cinst 1password
cinst windirstat
cinst greenshot
cinst hexedit
cinst iTunes
cinst sumatrapdf
cinst sumatrapdf.commandline
cinst sumatrapdf.install
cinst ultramon
cinst openoffice
cinst clover
cinst vmwarevsphereclient
cinst dropbox
cinst freeplane
cinst citrix-receiver
cinst db-visualizer
$chrome = convert-path (ls "$env:localappdata\" -recurse -include "chrome.exe")[0].pspath
If ($chrome -ne "")
{
Install-ChocolateyPinnedTaskBarItem $chrome
}
Install-ChocolateyPinnedTaskBarItem "$env:programfiles(x86)\microsoft office\office14\excel.exe"
$conemu = (ls "$env:programfiles\conemu" | where name -like "conemu*.exe")[0].name
Install-ChocolateyPinnedTaskBarItem "$env:programfiles\conemu\$conemu"
$sublime = convert-path (ls "$env:programfiles\sublime*" -recurse -include "sublime*.exe")[0].pspath
Install-ChocolateyFileAssociation ".txt" $sublime
Write-ChocolateySuccess 'DevBuild'
#Enable-UAC
Install-WindowsUpdate -AcceptEula
} catch {
Enable-UAC
Write-ChocolateyFailure 'DevBuild' $($_.Exception.Message)
throw
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment