Last active
December 10, 2018 07:41
-
-
Save liamjbennett/02565d834241854ab233b4b5b555d717 to your computer and use it in GitHub Desktop.
Boxstarter
This file contains hidden or 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
#PS C:\Windows\system32> | |
#. { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
#Install-BoxstarterPackage -PackageName <raw gist> | |
# Basic setup | |
Update-ExecutionPolicy Unrestricted | |
Disable-InternetExplorerESC | |
Disable-GameBarTips | |
Disable-UAC | |
Disable-BingSearch | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableOpenFileExplorerToQuickAccess -EnableShowRecentFilesInQuickAccess -EnableShowFrequentFoldersInQuickAccess -EnableExpandToOpenFolder | |
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst | |
Set-TaskbarOptions -Size Large -Lock -Dock Bottom | |
Enable-MicrosoftUpdate | |
# Basic packages | |
cinst -y LinkShellExtension 7zip.install curl procexp javaruntime | |
# Browsers / web | |
cinst -y googlechrome firefox | |
# Dev | |
cinst -y conemu git.install poshgit Git-Credential-Manager-for-Windows visualstudiocode | |
cinst -y nodejs.install ruby ruby.devkit python2 | |
npm install -g npm-windows-upgrade | |
# Other packages | |
cinst -y vlc windirstat gimp adobereader | |
cinst -y Microsoft-Hyper-V-All -source windowsFeatures | |
cinst -y docker-for-windows | |
# Set-up WSL | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock"/t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1" | |
Enable-WindowsOptionalFeature -Online -NoRestart -FeatureName Microsoft-Windows-Subsystem-Linux | |
& cmd.exe /c "lxrun /install /y" | |
& cmd.exe /c "lxrun /setdefaultuser liam" | |
Install-WindowsUpdate -acceptEula | |
# | |
# Remove the Crud | |
# | |
Remove-Item C:\Users\liam\Desktop\*.lnk | |
Remove-Item C:\Users\Public\Desktop\*.lnk | |
$regexList = @( | |
"windowsalarms","windowscommunicationsapps","windowscamera","windowsmaps","windowsphone", | |
"bingfinance","bingnews","bingsports","bingweather", | |
"zunemusic","zunevideo", | |
"3dbuilder","getstarted","solitairecollection","photos","soundrecorder","xboxapp", | |
"officehub","skypeapp","onenote", | |
"mine","soda","sketch","march","bubble", | |
"dolby" | |
) | |
ForEach($regex in $regexList) { | |
Get-AppxPackage *$regex* | Remove-AppxPackage | |
} | |
#Cleanup the disk | |
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase | |
C:\Windows\System32\cleanmgr.exe /d c: | |
Optimize-Volume -DriveLetter C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment