Skip to content

Instantly share code, notes, and snippets.

View dkunzler's full-sized avatar

David Kunzler dkunzler

View GitHub Profile
@KZeronimo
KZeronimo / package-full.ps1
Last active August 19, 2023 17:19
Winget based Boxstarter Script - Full - Windows 10/11
# Set TLS 1.2
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
# Import Choco Install-*
Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force
# Set up choco cache location to work around Boxstarter Issue 241
$chocoCache = (Join-Path ([Environment]::GetEnvironmentVariable("LocalAppData")) "Temp\ChocoCache")
New-Item -Path $chocoCache -ItemType directory -Force
# Remove *.tmp from the choco cache directory so the ad-hoc package installs using Install-ChocolateyPackage behave idempotently - this is a hack