Skip to content

Instantly share code, notes, and snippets.

@oscarduignan
Created September 27, 2017 08:50
Show Gist options
  • Save oscarduignan/f2c6bf6b9b9deb607af72608529336a2 to your computer and use it in GitHub Desktop.
Save oscarduignan/f2c6bf6b9b9deb607af72608529336a2 to your computer and use it in GitHub Desktop.
A basic boxstarter install script
# install a program with chocolatey
choco install googlechrome
# update behaviour of file explorer
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
# remove a store-installed program
Get-AppxPackage *Facebook* | Remove-AppxPackage
# lock screen when you close your laptop rather than sleeping it
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power' -Name AwayModeEnabled -Type DWord -Value 1
# change explorer home screen back to "this pc" rather than "quick access"
Set-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name LaunchTo -Type DWord -Value 1
# enable windows updates
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment