-
-
Save powerjc/a1d2ec4ea9c2adbf98aa5824f759b8ae to your computer and use it in GitHub Desktop.
Boxstarter Commands for a new Windows box.
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
| # Description: Boxstarter Script | |
| # Author: Jess Frazelle <[email protected]> | |
| # Last Updated: 2017-09-11 | |
| # | |
| # 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 | |
| #---- TEMPORARY --- | |
| Disable-UAC | |
| #--- Fonts --- | |
| choco install inconsolata -y | |
| #--- Windows Settings --- | |
| Disable-BingSearch | |
| Disable-GameBarTips | |
| 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 MMTaskbarMode -Value 2 | |
| #--- Windows Subsystems/Features --- | |
| choco install Microsoft-Hyper-V-All -source windowsFeatures | |
| choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures | |
| #--- Tools --- | |
| choco install git -params '"/GitAndUnixToolsOnPath /WindowsTerminal"' -y | |
| choco install poshgit | |
| choco install vim | |
| #--- Apps --- | |
| choco install googlechrome | |
| choco install docker-for-windows | |
| choco install microsoft-teams | |
| choco install vcxsrv | |
| #--- Restore Temporary Settings --- | |
| Enable-UAC | |
| Enable-MicrosoftUpdate | |
| Install-WindowsUpdate -acceptEula |
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
| # Description: Uninstall unecessary applications that come with Windows out of the box | |
| # Author: Jess Frazelle <[email protected]> | |
| # Last Updated: 2017-09-11 | |
| # Dropbox | |
| Get-AppxPackage *Dropbox* | Remove-AppxPackage | |
| # McAfee Security | |
| # Netflix | |
| Get-AppxPackage *Netflix* | Remove-AppxPackage | |
| # Solitaire | |
| Get-AppxPackage *Solitaire* | Remove-AppxPackage | |
| # Xbox | |
| Get-AppxPackage *Xbox* | Remove-AppxPackage | |
| #-- Useful commands for privacy --# | |
| # Most from: @NickCraver's gist https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9 | |
| # Privacy: SmartScreen Filter for Store Apps: Disable | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 | |
| # To Restore: | |
| #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 1 | |
| # WiFi Sense: Shared HotSpot Auto-Connect: Disable | |
| Set-ItemProperty -Path HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots -Name value -Type DWord -Value 0 | |
| # Start Menu: Disable Bing Search Results | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -Name BingSearchEnabled -Type DWord -Value 0 | |
| # To Restore (Enabled): | |
| # Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -Name BingSearchEnabled -Type DWord -Value 1 | |
| # Disable Telemetry (requires a reboot to take effect) | |
| Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWord -Value 0 | |
| Get-Service DiagTrack,Dmwappushservice | Stop-Service | Set-Service -StartupType Disabled | |
| # Change Explorer home screen back to "This PC" | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Type DWord -Value 1 | |
| # Change it back to "Quick Access" (Windows 10 default) | |
| #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Type DWord -Value 2 | |
| # These make "Quick Access" behave much closer to the old "Favorites" | |
| # Disable Quick Access: Recent Files | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowRecent -Type DWord -Value 0 | |
| # Disable Quick Access: Frequent Folders | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowFrequent -Type DWord -Value 0 | |
| # To Restore: | |
| #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowRecent -Type DWord -Value 1 | |
| #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowFrequent -Type DWord -Value 1 | |
| # Disable the Lock Screen (the one before password prompt - to prevent dropping the first character) | |
| If (-Not (Test-Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization)) { | |
| New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows -Name Personalization | Out-Null | |
| } | |
| Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization -Name NoLockScreen -Type DWord -Value 1 | |
| # To Restore: | |
| #Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization -Name NoLockScreen -Type DWord -Value 1 | |
| # Use the Windows 7-8.1 Style Volume Mixer | |
| If (-Not (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC")) { | |
| New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name MTCUVC | Out-Null | |
| } | |
| Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC" -Name EnableMtcUvc -Type DWord -Value 0 | |
| # To Restore (Windows 10 Style Volume Control): | |
| #Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC" -Name EnableMtcUvc -Type DWord -Value 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment