Skip to content

Instantly share code, notes, and snippets.

@bdukes
Last active August 29, 2015 13:59
Show Gist options
  • Save bdukes/10612267 to your computer and use it in GitHub Desktop.
Save bdukes/10612267 to your computer and use it in GitHub Desktop.
Home boxstarter script
try {
Install-WindowsUpdate -acceptEula -criteria "IsAssigned=1 and IsHidden=0 and IsInstalled=0"
Enable-MicrosoftUpdate
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions
Update-ExecutionPolicy
cinst MicrosoftSecurityEssentials
cinst firefox
cinst adblockplusfirefox
cinst googlechrome
cinst powershell
cinst pscx
cinst filezilla
cinst 7zip
cinst gitextensions
cinst clipx -pre
cinst sox.portable #TODO: copy libmad & lame DLLs
cinst paint.net
cinst notepad2
cinst teamviewer
cinst steam
cinst skype
cinst dropbox
cinst skydrive
cinst libreoffice
cinst PDFCreator
Push-Location
cd $profile\..\..
git clone --recursive https://github.com/bdukes/PowerShell-Profile.git WindowsPowerShell
Pop-Location
#TODO: firefox extensions?
#TODO: disable Aero Shake
#TODO: lastpass
#TODO: how to pin item from dropbox before logging into dropbox…
#Install-ChocolateyPinnedTaskBarItem "$env:home\Dropbox\Applications\cmder\Cmder.exe"
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)\Google\Chrome\Application\chrome.exe"
Install-ChocolateyPinnedTaskBarItem "$($Boxstarter.programFiles86)\Mozilla Firefox\firefox.exe"
Install-ChocolateyPinnedTaskBarItem "$env:windir\system32\notepad.exe"
# install any updates triggered from the above applications
Install-WindowsUpdate -acceptEula -criteria "IsAssigned=1 and IsHidden=0 and IsInstalled=0"
Write-ChocolateySuccess 'dukes-homebrew'
} catch {
Write-ChocolateyFailure 'dukes-homebrew' $($_.Exception.Message)
throw
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment