Skip to content

Instantly share code, notes, and snippets.

@wipash
Last active September 14, 2017 22:05
Show Gist options
  • Save wipash/ba7e00033fba55e26dc89f18fab12066 to your computer and use it in GitHub Desktop.
Save wipash/ba7e00033fba55e26dc89f18fab12066 to your computer and use it in GitHub Desktop.
# Description: Boxstarter Script
# Author: Sean McGrath <sean@mcgrath.net.nz>
# Last Updated: 2017-09-14
#
# 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
Enable-RemoteDesktop
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -Lock
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 LaunchTo -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\EdgeUi -Name MouseMonitorEscapeSpeed -Value 1
#--- Windows Subsystems/Features ---
choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures
#--- Apps ---
choco install googlechrome
choco install firefox
choco install adobereader
choco install javaruntime
choco install filezilla
choco install winscp
choco install 7zip.install
choco install microsoft-teams
choco install royalts
choco install visualstudiocode
choco install notepadplusplus.install
choco install python
choco install wireshark
choco install gnupg-modern
#--- Less important apps ---
choco install steam
choco install spotify
choco install everything
#--- Setup tasks ---
#-- GPG --
$startupFolder = [System.Environment]::GetFolderPath("Startup")
$programFiles = [System.Environment]::GetFolderPath("ProgramFilesx86")
$applicationData = [System.Environment]::GetFolderPath("ApplicationData")
$WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut($startupFolder + "\GPG Connect Agent.lnk")
$Shortcut.TargetPath = $programFiles + "\GnuPG\bin\gpg-connect-agent.exe"
$Shortcut.Arguments = "/bye"
$Shortcut.WorkingDirectory = $programFiles + "\GnuPG\bin"
$Shortcut.Save()
Invoke-Command {cmd /c gpg --version}
$gpgAgentConfPath = $applicationData + "\gnupg\gpg-agent.conf"
New-Item -Path $gpgAgentConfPath -ItemType file
Set-Content $gpgAgentConfPath "enable-putty-support"
#--- Restore Temporary Settings ---
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment