Skip to content

Instantly share code, notes, and snippets.

@kfrancis
Forked from cygnull/Win10Daily_BoxSetup.txt
Last active March 8, 2021 22:30
Show Gist options
  • Save kfrancis/c6351a39b60b4d6c357679a57f626710 to your computer and use it in GitHub Desktop.
Save kfrancis/c6351a39b60b4d6c357679a57f626710 to your computer and use it in GitHub Desktop.
Boxstarter script for Windows 10 Daily use, Gaming, Developement..
#As described here: http://boxstarter.org/Learn/WebLauncher
#The command to run, built from the raw link of this gist
#START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/kfrancis/c6351a39b60b4d6c357679a57f626710/raw/9ff85d80e76685203b66e81b2c6c746f485bbfdd/Win10Daily_BoxSetup.txt
Write-BoxstarterMessage "Setting Execution Policy to Unrestricted and Disabling UAC"
Update-ExecutionPolicy Unrestricted
Disable-UAC
Restart-Computer
Write-BoxstarterMessage "Downloading and Installing .Net Framework v3.5 then rebooting if needed."
# .NET 3.5
choco install DotNet3.5
if (Test-PendingReboot) { Invoke-Reboot }
Write-BoxstarterMessage "Downloading and Installing .Net Framework v4.5 then Rebooting if needed."
# .NET 4.5
choco install DotNet4.5
if (Test-PendingReboot) {
Invoke-Reboot
}
Write-BoxstarterMessage "Downloading and Installing .Net Framework v4.6 then Rebooting if needed."
# .NET 4.6
choco install DotNet4.6
if (Test-PendingReboot) {
Invoke-Reboot
}
####change power settings for installs
########################
Write-BoxstarterMessage "Setting Standby Timeout to Never"
powercfg -change -standby-timeout-ac 0
powercfg -change -standby-timeout-dc 0
Write-BoxstarterMessage "Setting Monitor Timeout to 240 minutes"
powercfg -change -monitor-timeout-ac 240
powercfg -change -monitor-timeout-dc 20
Write-BoxstarterMessage "Setting Disk Timeout to Never"
powercfg -change -disk-timeout-ac 0
powercfg -change -disk-timeout-dc 0
Write-BoxstarterMessage "Turning off Windows Hibernation"
powercfg -h off
Write-BoxstarterMessage "Downloading, Installing Windows Updates then rebooting if needed."
# Update Windows and reboot if necessary
Install-WindowsUpdate -AcceptEula -GetUpdatesFromMS
if (Test-PendingReboot) { Invoke-Reboot }
Write-BoxstarterMessage "Windows Updates complete, Disabling Windows Update until Boxstarter is finished."
Disable-MicrosoftUpdate
# System Software
#choco install sysinternals -y
#Media
Write-BoxstarterMessage "Installing Media Software and Codecs"
choco install vlc -y
choco install ffmpeg -y
choco install spotify -y
# Optional Software
Write-BoxstarterMessage "Installing Misc. Software and Fonts"
choco install googlechrome -y
choco install rufus.install -y
choco install steam -y
# Fonts
choco install sourcecodepro -y
choco install RobotoFonts -y
choco install ubuntu.font -y
choco install opensans -y
choco install MesloLG.DZ -y
choco install bitstreamverafonts -y
choco install dejavufonts -y
#landon
choco install qustodio -y
choco install twitch -y
choco install epicgameslauncher -y
choco install 1password -y
choco install obs-studio -y
choco install minecraft-launcher -y
choco install zoom -y
#### Schedule updates to applications with chocolatey
schtasks.exe /create /s "localhost" /ru "System" /tn "Update Chocolatey packages" /tr "%ChocolateyInstall%\bin\cup all" /sc DAILY /st 06:00 /F
Write-BoxstarterMessage "Set update schedule for apps is finished"
if (Test-PendingReboot) { Invoke-Reboot }
Write-BoxstarterMessage "Setting Explorer options and Taskbar up the way you like, and Disabling a few features that will be unused or needed"
# Apply user settings
# Disable defrag (no need when having an SSD)
Get-ScheduledTask -TaskName *defrag* | Disable-ScheduledTask
Move-LibraryDirectory "Downloads" "E:\Downloads"
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Set-TaskbarOptions -Size Small -Lock
Disable-InternetExplorerESC
Disable-BingSearch
Disable-GameBarTips
Disable-PSRemoting
Write-BoxstarterMessage "Enabling UAC, Windows Update, and Cleaning up Boxstarter junk"
################
Update-ExecutionPolicy Unrestricted
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula -GetUpdatesFromMS
#Turn UAC Back on
Enable-UAC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment