Skip to content

Instantly share code, notes, and snippets.

@powareverb
Last active November 6, 2020 06:29
Show Gist options
  • Select an option

  • Save powareverb/9ef1eeb58b60e4338b13c9d9d19d460a to your computer and use it in GitHub Desktop.

Select an option

Save powareverb/9ef1eeb58b60e4338b13c9d9d19d460a to your computer and use it in GitHub Desktop.
Bootstrap Heph
# Run this script:
# $gistuser = "powareverb"; $gistId="9ef1eeb58b60e4338b13c9d9d19d460a"; . { iwr -useb https://gist.githubusercontent.com/$gistuser/$gistid/raw/bootstrap.ps1 } | iex; Invoke-BootstrapMachine -machinename $(hostname);
function Invoke-GetChocolatey() {
# Choco boot
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
}
function Invoke-GetBoxStarter() {
# Boxstarter
. { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; Get-Boxstarter -Force
}
function Invoke-InstallScoop() {
iwr -useb get.scoop.sh | iex
}
function Invoke-BootstrapMachine($machinename) {
$gistuser = "powareverb"; $gistId="9ef1eeb58b60e4338b13c9d9d19d460a";
if(!$machinename) {
$machinename = $(hostname)
}
Write-Host "This script will bootstrap the machine named: $machinename"
Invoke-GetChocolatey
Invoke-GetBoxStarter
Invoke-InstallScoop
Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/$gistuser/$gistId/raw/boxstarter-$machinename.txt -DisableReboots
}
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cup -y powershell-core powershell-preview powershell
cup -y microsoft-windows-terminal notepad2 procmon
cinst Microsoft-Hyper-V-All -source windowsFeatures
cinst IIS-WebServerRole -source windowsfeatures
Enable-WindowsOptionalFeature -Online -FeatureName $("VirtualMachinePlatform", "Microsoft-Windows-Subsystem-Linux")
cup -y google-chrome-x64 microsoft-edge
cup -y keepass keepass-plugin-keepasshttp keepass-plugin-databasebackup
cup -y putty linkshellextension
cup -y resilio-sync-home synctrayzor google-backup-and-sync
cup -y duplicati
# dev
cup -y fiddler git-credential-winstore dotpeek tortoisegit
cup -y vscode visualstudio2019community linqpad kdiff3
cup -y docker-desktop docker-cli
cup -y kubernetes-cli
cup -y gh
cup -y terraform
# Azure
cup -y azure-cli azure-cosmosdb-emulator microsoftazurestorageexplorer azure-functions-core-tools-2 azurepowershell
# wsl --install
cup -y wsl-ubuntu-1804 wsl-ubuntu-2004 wsl-alpine
# Gaming
cup -y steam epicgameslauncher goggalaxy
# Streaming
cup -y obs-studio
# Social
cup -y discord slack microsoft-teams
cup -y duplicati
# Tools
cup -y speccy seatools rufus
# Finalise and run updates
Install-WindowsUpdate -Full
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment