-
-
Save iacoware/ffd8e92558af7fd2cb5822cfd4141305 to your computer and use it in GitHub Desktop.
Boxstarter Commands for a new Windows box.
This file contains 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 <jess@linux.com> adjusted a but to suit my needs | |
# Last Updated: 2017-09-11 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: | |
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST> | |
# OR | |
# Install-BoxstarterPackage -PackageName <URL-TO-RAW-GIST> -DisableReboots | |
# | |
# Learn more: http://boxstarter.org/Learn/WebLauncher | |
#---- TEMPORARY --- | |
Disable-UAC | |
#--- Fonts --- | |
choco install firacode | |
##--- Windows Settings --- | |
Disable-BingSearch | |
Disable-GameBarTips | |
Disable-MicrosoftUpdate | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar -DisableExpandToOpenFolder -DisableShowFrequentFoldersInQuickAccess -DisableShowRecentFilesInQuickAccess | |
Set-TaskbarOptions -Size Large -Dock Bottom -Combine Always -AlwaysShowIconsOff | |
#--- Windows Subsystems/Features --- | |
#choco install Microsoft-Hyper-V-All -source windowsFeatures | |
#choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures | |
#IIS | |
choco install IIS-WebServerRole -source windowsfeatures | |
choco install IIS-ISAPIFilter -source windowsfeatures | |
choco install IIS-ISAPIExtensions -source windowsfeatures | |
choco install IIS-NetFxExtensibility -source windowsfeatures | |
choco install IIS-ASPNET -source windowsfeatures | |
#--- Tools --- | |
choco install git -params '"/GitAndUnixToolsOnPath /WindowsTerminal"' -y | |
choco install git-credential-winstore -y | |
choco install poshgit -y | |
choco install tortoisegit -y | |
choco install conemu -y | |
choco install sysinternals -y | |
#choco install github | |
choco install visualstudiocode -y | |
choco install sublimetext3 -y | |
#choco install sublimetext3.packagecontrol is it needed anymore? | |
choco install 7zip -y | |
choco install autohotkey -y | |
choco install jetbrainstoolbox -y | |
choco install nvs -y | |
#choco install zoom -y | |
#choco install nvm | |
# choco install vim | |
#--- Apps --- | |
choco install googlechrome | |
choco install firefox | |
#choco install docker-for-windows | |
# choco install sharex | |
# choco install microsoft-teams | |
# choco install vcxsrv | |
#--- Uninstall unecessary applications that come with Windows out of the box --- | |
#--- see: https://www.maketecheasier.com/uninstall-pre-installed-apps-windows-10/ --- | |
# Alarms | |
Get-AppxPackage Microsoft.WindowsAlarms | Remove-AppxPackage | |
Get-AppxPackage Microsoft.WindowsSoundRecorder | Remove-AppxPackage | |
Get-AppxPackage *photo* | Remove-AppxPackage | |
Get-AppxPackage Microsoft.WindowsFeedbackHub | Remove-AppxPackage | |
Get-AppxPackage Microsoft.Getstarted | Remove-AppxPackage | |
Get-AppxPackage microsoft.windowscommunicationsapps | Remove-AppxPackage # Mail & Calendar | |
Get-AppxPackage *skype* | Remove-AppxPackage | |
Get-AppxPackage Microsoft.WindowsMaps | Remove-AppxPackage | |
Get-AppxPackage Microsoft.Messaging | Remove-AppxPackage | |
Get-AppxPackage *Minecraft* | Remove-AppxPackage | |
Get-AppxPackage *Netflix* | Remove-AppxPackage | |
Get-AppxPackage Microsoft.MicrosoftOfficeHub | Remove-AppxPackage | |
Get-AppxPackage Microsoft.OneConnect | Remove-AppxPackage | |
Get-AppxPackage Microsoft.Office.OneNote | Remove-AppxPackage | |
Get-AppxPackage Microsoft.People | Remove-AppxPackage | |
Get-AppxPackage Microsoft.WindowsPhone | Remove-AppxPackage | |
Get-AppxPackage *Plex* | Remove-AppxPackage | |
Get-AppxPackage Microsoft.MicrosoftStickyNotes | Remove-AppxPackage | |
Get-AppxPackage Microsoft.Office.Sway | Remove-AppxPackage | |
Get-AppxPackage *Twitter* | Remove-AppxPackage | |
Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage | |
Get-AppxPackage Microsoft.XboxIdentityProvider | Remove-AppxPackage | |
Get-AppxPackage Microsoft.ZuneMusic | Remove-AppxPackage | |
Get-AppxPackage Microsoft.ZuneVideo | Remove-AppxPackage | |
Get-AppxPackage *fitbit* | Remove-AppxPackage | |
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-AppxPackage *CandyCrush* | Remove-AppxPackage | |
Get-AppxPackage *Cooking* | Remove-AppxPackage | |
Get-AppxPackage *Solitaire* | Remove-AppxPackage | |
# Never sleep or hibernate inside Windows | |
powercfg.exe -x -monitor-timeout-ac 0 | |
powercfg.exe -x -monitor-timeout-dc 0 | |
powercfg.exe -x -disk-timeout-ac 0 | |
powercfg.exe -x -disk-timeout-dc 0 | |
powercfg.exe -x -standby-timeout-ac 0 | |
powercfg.exe -x -standby-timeout-dc 0 | |
powercfg.exe -x -hibernate-timeout-ac 0 | |
powercfg.exe -x -hibernate-timeout-dc 0 | |
#--- Windows Settings --- | |
# Some from: @NickCraver's gist https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9 | |
<# | |
# 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 | |
# WiFi Sense: HotSpot Sharing: Disable | |
If (-Not (Test-Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting")) { | |
New-Item -Path HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting | Out-Null | |
} | |
Set-ItemProperty -Path HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting -Name value -Type DWord -Value 0 | |
# 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) | |
# Note this may break Insider builds for your organization | |
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 | |
# Better File Explorer | |
#Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneExpandToCurrentFolder -Value 0 | |
#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 | |
# 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 | |
# Lock screen (not sleep) on lid close | |
#Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power' -Name AwayModeEnabled -Type DWord -Value 1 | |
# To Restore: | |
# Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power' -Name AwayModeEnabled -Type DWord -Value 0 | |
# 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 | |
# Disable Xbox Gamebar | |
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" -Name AppCaptureEnabled -Type DWord -Value 0 | |
Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name GameDVR_Enabled -Type DWord -Value 0 | |
# Turn off People in Taskbar | |
If (-Not (Test-Path "HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People")) { | |
New-Item -Path HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People | Out-Null | |
} | |
Set-ItemProperty -Path "HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name PeopleBand -Type DWord -Value 0 | |
#> | |
#--- Restore Temporary Settings --- | |
Enable-UAC | |
Install-WindowsUpdate -acceptEula -Full | |
#--- Rename the Computer --- | |
# Requires restart, or add the -Restart flag | |
$computername = "iacpro-win" | |
if ($env:computername -ne $computername) { | |
Rename-Computer -NewName $computername | |
} |
This file contains 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
; It's an Autohotkey script which tries to make Windows usable on a MacBook pro laptop | |
#SingleInstance force ; Replace old script when re-run the script | |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
#warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
#InstallKeybdHook | |
#InstallMouseHook | |
LWin & Tab::AltTab | |
LWin & Esc::ShiftAltTab | |
;Can't specify a three key keyboard shotcut | |
;Lwin & Shift & Tab::ShiftAltTab | |
;This is the provided solution to the above problem | |
;(which works) but the SendInput does not | |
;LWin & Tab:: | |
;If GetKeyState("Shift") | |
; SendInput ShiftAltTab | |
;Else | |
; SendInput AltTab | |
;Return | |
!Space::SendInput ^{Esc} ; Open start menu (like Alfred) | |
#^!r:: | |
MsgBox Autohotkey script reloaded | |
Reload | |
return | |
;-------------------------- | |
; Remap macOS shortcuts | |
;-------------------------- | |
#c::SendInput ^c | |
#v::SendInput ^v | |
#x::SendInput ^x | |
#z::SendInput ^z | |
#y::SendInput ^y | |
#r::SendInput ^r ;reload | |
#s::SendInput ^s | |
#o::SendInput ^o | |
#f::SendInput ^f | |
#n::SendInput ^n | |
#t::SendInput ^t ; new tab in browser (IE, Safari, Firefox, etc) | |
#d::SendInput ^d ; duplicate row | |
!5::SendInput ~ ; tilde | |
!9::SendInput `` ; backtick | |
!Left::SendInput ^{Left} | |
!Right::SendInput ^{Right} | |
LWin & Right::SendInput {End} | |
LWin & Left::SendInput {Home} | |
!#s::SendInput ^+s ; Save all | |
#w::SendInput ^{F4} ; close current tab ctrl-f4 | |
#q::SendInput !{F4} ; close app (alt-f4) | |
#LButton::SendInput ^{Click} ; ctrl + click | |
#if WinActive("ahk_exe devenv.exe") | |
#b::SendInput ^b | |
#-::SendInput ^- | |
#+b::SendInput ^+b | |
!#m::SendInput !^m | |
!#p::SendInput !^p | |
!#v::SendInput !^v | |
!#f::SendInput !^f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment