Skip to content

Instantly share code, notes, and snippets.

@sfilatov
Last active September 15, 2017 18:33
Show Gist options
  • Save sfilatov/ebf9e6b94ee612a30f4aaa039cdbd624 to your computer and use it in GitHub Desktop.
Save sfilatov/ebf9e6b94ee612a30f4aaa039cdbd624 to your computer and use it in GitHub Desktop.
Setup Windows Desktop
# run in elevated mode
Set-ExecutionPolicy Unrestricted -Force
# Install first http://boxstarter.org/
. { Invoke-WebRequest -useb http://boxstarter.org/bootstrapper.ps1 } | Invoke-Expression; get-boxstarter -Force
# temporary disable UAC
Disable-UAC
# 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
# Change Explorer home screen back to "This PC"
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2
# Disable Quick Access: Frequent Folders
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowFrequent -Type DWord -Value 0
# Change Windows Updates to "Notify to schedule restart"
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name UxOption -Type DWord -Value 1
# Tools
cinst poshgit -y
cinst vim -y
cinst visualstudiocode -y
cinst 7zip.install -y
# Apps
cinst googlechrome -y
cinst docker-for-windows -y
cinst microsoft-teams -y
cinst telegram -y
# enable UAC
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula
Set-ExecutionPolicy RemoteSigned -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment