Skip to content

Instantly share code, notes, and snippets.

@froland
Last active August 9, 2023 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save froland/bea0e75ea650a7f35916329f27421320 to your computer and use it in GitHub Desktop.
Save froland/bea0e75ea650a7f35916329f27421320 to your computer and use it in GitHub Desktop.
# Description: Boxstarter script
# Author: François ROLAND
# Script to setup a freshly installed machine
Disable-UAC
Disable-BingSearch
Disable-GameBarTips
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -DisableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableOpenFileExplorerToQuickAccess -EnableShowRecentFilesInQuickAccess -EnableShowFrequentFoldersInQuickAccess -EnableExpandToOpenFolder -DisableShowRibbon
Set-BoxstarterTaskbarOptions -Combine Always
Set-BoxstarterTaskbarOptions -MultiMonitorOn -MultiMonitorMode All -MultiMonitorCombine Always
Set-BoxstarterTaskbarOptions -DisableSearchBox
Write-Host "Uninstall some applications that come with Windows out of the box" -ForegroundColor "Yellow"
function removeApp {
Param ([string]$appName)
Write-Output "Trying to remove $appName"
Get-AppxPackage $appName -AllUsers | Remove-AppxPackage
Get-AppXProvisionedPackage -Online | Where DisplayName -like $appName | Remove-AppxProvisionedPackage -Online
}
$applicationList = @(
"Microsoft.BingFinance"
"Microsoft.3DBuilder"
"Microsoft.BingNews"
"Microsoft.BingSports"
"Microsoft.BingWeather"
"Microsoft.CommsPhone"
"Microsoft.Getstarted"
"Microsoft.WindowsMaps"
"*MarchofEmpires*"
"Microsoft.GetHelp"
"Microsoft.Messaging"
"Microsoft.MicrosoftOfficeHub"
"Microsoft.OneConnect"
"Microsoft.WindowsPhone"
"Microsoft.WindowsSoundRecorder"
"Microsoft.MicrosoftStickyNotes"
"Microsoft.Office.Sway"
"Microsoft.XboxApp"
"Microsoft.XboxIdentityProvider"
"Microsoft.XboxGameOverlay"
"Microsoft.XboxGamingOverlay"
"Microsoft.ZuneMusic"
"Microsoft.ZuneVideo"
"Microsoft.NetworkSpeedTest"
"Microsoft.FreshPaint"
"Microsoft.Print3D"
"Microsoft.People*"
"Microsoft.Microsoft3DViewer"
"Microsoft.MixedReality.Portal*"
"*Autodesk*"
"*BubbleWitch*"
"G5*"
"*Dell*"
"*Dropbox*"
"*Facebook*"
"*Keeper*"
"*Minecraft*"
"*Plex*"
"*Skype*"
"*Solitaire*"
"*Twitter*"
"*.Duolingo-LearnLanguagesforFree"
"*.EclipseManager"
"king.com*"
"ActiproSoftwareLLC.562882FEEB491" # Code Writer
"*.AdobePhotoshopExpress"
);
foreach ($app in $applicationList) {
removeApp $app
}
choco install 7zip
choco install adobereader
choco install dejavufonts
choco install git --params "'/GitAndUnixToolsOnPath /WindowsTerminal /NoAutoCrlf /NoShellIntegration /Symlinks'"
choco install git-credential-manager-for-windows
refreshenv
git config --global core.autocrlf input
git config --global core.eol lf
git config --global core.filemode false
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global color.ui true
git config --global color.pager true
git config --global color.showbranch auto
git config --global init.defaultBranch main
git config --global pull.rebase false
git config --global push.default simple
git config --global user.email francois.roland@outlook.be
git config --global user.name "François ROLAND"
choco install k-litecodecpackfull
choco install hackfont
choco install firacode
choco install inconsolata
choco install jabra-direct --params "'/CleanStartmenu'"
choco install nmap
choco install nvm
choco install powertoys
choco install python
refreshenv
python -m pip install --upgrade pip
choco install robotofonts
choco install sysinternals
choco install Temurin17 --params "'/ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJavaHome'"
choco install visualparadigm-ce --ignore-checksums
choco install vscode --params "/NoDesktopIcon"
choco install wacom-drivers
choco install wireshark
choco install zotero
choco install Microsoft-Hyper-V-All --source="'windowsFeatures'"
choco install Microsoft-Windows-Subsystem-Linux --source="'windowsfeatures'"
# WSL Ubuntu
winget install --id 9PDXGNCFSCZV --source=msstore --silent --accept-package-agreements --accept-source-agreements
Enable-WindowsOptionalFeature -Online -FeatureName containers -All
RefreshEnv
choco install -y docker-desktop
# Mobile connecté
winget install --id 9NMPJ99VJBWV --source=msstore --silent --accept-package-agreements --accept-source-agreements
# Microsoft To Do
winget install --id 9NBLGGH5R558 --source=msstore --silent --accept-package-agreements --accept-source-agreements
# Spotify
winget install --id 9NCBCSZSJRSB --source=msstore --silent --accept-package-agreements --accept-source-agreements
# Dev Home (préversion)
winget install --id 9N8MHTPHNGVV --source=msstore --silent --accept-package-agreements --accept-source-agreements
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment