Skip to content

Instantly share code, notes, and snippets.

@MartinMiles
Created April 19, 2024 15:29
Show Gist options
  • Save MartinMiles/31a9b807fde9281936163703bc4ad327 to your computer and use it in GitHub Desktop.
Save MartinMiles/31a9b807fde9281936163703bc4ad327 to your computer and use it in GitHub Desktop.
Install Windows Terminal by PowerShell on Windows Server
# Provide URL to newest version of Windows Terminal Application
$url = 'https://github.com/microsoft/terminal/releases/download/v1.16.10261.0/Microsoft.WindowsTerminal_Win10_1.16.10261.0_8wekyb3d8bbwe.msixbundle'
$split = Split-Path $url -Leaf
# Prerequisites
Start-BitsTransfer -Source 'https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx' `
-Destination $home\Microsoft.VCLibs.x86.14.00.Desktop.appx
Add-AppxPackage $home\Microsoft.VCLibs.x86.14.00.Desktop.appx
# Download
Start-BitsTransfer `
-Source $url `
-Destination (Join-Path -Path $home -ChildPath $split)
# Installation
Add-AppxPackage -Path (Join-Path -Path $home -ChildPath $split)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment