boxstarter script
# Description: Boxstarter Script
# Author: Mike Zawacki <mikezawacki@hotmail.com>
# Last Updated 09.14.2017
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
# start http://boxstarter.org/package/nr/url?<url to raw gist>
#
# Learn more: http://boxstarter.org/Learn/WebLauncher
Disable-UAC
choco install inconsolata -y
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -Lock
Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -AlwaysShowIconsOn
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneExpandToCurrentFolder -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2
choco install sysinternals -y
Enable-RemoteDesktop
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart
#Browser stuff
choco install googlechrome
choco install docker-for-windows
choco install microsoft-teams
choco install adobereader
choco install postman
choco install dotnetcore-sdk
choco install packer
#git apps
choco install git -params '"/GitAndUnixToolsOnPath /WindowsTerminal"' -y
#git
choco install poshgit
choco install vim
#$env:Path = $env:Path + 'C:\Program Files (x86)\Git\bin'
# Text Editors
choco install visualstudiocode
#Web/Node
choco install nodejs.install
choco install rdcman
npm install -g gulp manifoldjs yo
npm install -g azure-functions-core-tools
choco install 7zip azure-cli kdiff3 octave.portable python anaconda3
choco install microsoftazurestorageexplorer
#Environment
choco install Microsoft-Hyper-V-All -source windowsFeatures
choco install IIS-WebServerRole -source windowsfeatures
choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures
# Turn off space-wasting hibernation
powercfg.exe /hibernate off
#Download Installers
cd $env:USERPROFILE\downloads
Install-WindowsUpdate -getUpdatesFromMS -acceptEula -SuppressReboots
Install-Module AzureRM -Force -AllowClobber
mkdir $env:USERPROFILE\AppData\Roaming\Code\User\
Invoke-WebRequest https://gist.githubusercontent.com/MJZawacki/4546a51806b1ef67835546b701d5b332/raw/7dfa2f13d4c595c21a7fc9a519251bc5fde6d6ed/vscodesettings.json -OutFile $env:USERPROFILE\AppData\Roaming\Code\User\settings.json
Invoke-WebRequest https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -OutFile $env:USERPROFILE\Desktop\git-completion.bash
Invoke-WebRequest https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -Outfile $env:USERPROFILE\Desktop\git-prompt.sh
Invoke-WebRequest https://raw.githubusercontent.com/seebi/dircolors-solarized/master/dircolors.256dark -Outfile $env:USERPROFILE\Desktop\dircolors.256dark
## Other useful commands
#--- List all installed programs --#
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate |Format-Table -AutoSize
#--- Remove Apps ---#
# Bing Weather, News, Sports, and Finance (Money):
Get-AppxPackage Microsoft.BingFinance | Remove-AppxPackage
Get-AppxPackage Microsoft.BingNews | Remove-AppxPackage
Get-AppxPackage Microsoft.BingSports | Remove-AppxPackage
Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage
# Get Started
Get-AppxPackage Microsoft.Getstarted | Remove-AppxPackage
# March of Empires
Get-AppxPackage *MarchofEmpires* | Remove-AppxPackage
# Privacy: Let apps use my advertising ID: Disable
If (-Not (Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo")) {
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo | Out-Null
}
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0
# BubbleWitch
Get-AppxPackage *BubbleWitch* | Remove-AppxPackage
# Candy Crush
Get-AppxPackage king.com.CandyCrush* | Remove-AppxPackage
#--- List all store-installed programs --#
Get-AppxPackage | Select-Object Name, PackageFullName, Version |Format-Table -AutoSize
#--- Restore Temporary Settings ---
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula