Created
July 15, 2025 00:48
-
-
Save pragmat1c/7b9efbee88bc9df524ad8b4b7fc543b5 to your computer and use it in GitHub Desktop.
Install Terminal and WinGet on Windows Server 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Works as of 2025-07-14 | |
| # Download prerequisites | |
| Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile $env:USERPROFILE\Microsoft.VCLibs.x64.14.00.Desktop.appx | |
| Add-AppxPackage $env:USERPROFILE\Microsoft.VCLibs.x64.14.00.Desktop.appx | |
| # Download the ZIP file | |
| Invoke-WebRequest -Uri "https://github.com/microsoft/terminal/releases/download/v1.22.11751.0/Microsoft.WindowsTerminal_1.22.11751.0_8wekyb3d8bbwe.msixbundle_Windows10_PreinstallKit.zip" -OutFile "$env:USERPROFILE\Downloads\WindowsTerminal_PreinstallKit.zip" | |
| # Unzip the file | |
| Expand-Archive -Path "$env:USERPROFILE\Downloads\WindowsTerminal_PreinstallKit.zip" -DestinationPath "$env:USERPROFILE\Downloads\WindowsTerminal_PreinstallKit" | |
| # Install XAML | |
| add-AppxPackage $env:USERPROFILE\Downloads\WindowsTerminal_PreinstallKit\Microsoft.UI.Xaml.2.8_8.2501.31001.0_x64__8wekyb3d8bbwe.appx | |
| # Install Windows Terminal | |
| Add-AppxPackage $env:USERPROFILE\Downloads\WindowsTerminal_PreinstallKit\71f5111485294560927b769d55581165.msixbundle | |
| # winget install | |
| Install-Script winget-install -Force | |
| winget-install -Force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment