As you might know, I am a huge fan of the Windows Terminal, and since Windows Server 2022 by default does not include the Windows Terminal, I wanted to quickly show you how you can install the Windows Terminal on Windows Server 2022.
How to install Windows Terminal on Windows Server 2022
Luckily, we can simply download the MSIX bundle from the Windows Terminal GitHub release page. You can also run the following PowerShell command to download the file (Make sure you change the Uri to the latest version).
# Install Prerequisites
Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -outfile Microsoft.VCLibs.x86.14.00.Desktop.appx
Add-AppxPackage Microsoft.VCLibs.x86.14.00.Desktop.appx
# Download Terminal (Change version)
Invoke-WebRequest -Uri https://github.com/microsoft/terminal/releases/download/v1.7.1091.0/Microsoft.WindowsTerminal_1.7.1091.0_8wekyb3d8bbwe.msixbundle -outfile Microsoft.WindowsTerminal_1.7.1091.0_8wekyb3d8bbwe.msixbundle
Now you can run the following PowerShell command to add the msixbudle and install the Windows Terminal on Windows Server 2022.
Add-AppxPackage Microsoft.WindowsTerminal_<versionNumber>.msixbundle
In my example this would be:
Add-AppxPackage -Path .\Microsoft.WindowsTerminal_1.7.1091.0_8wekyb3d8bbwe.msixbundle
Keep in mind, when you install the Windows Terminal manual like this, it will not automatically update itself.
Conclusion
I hope this blog post is helpful. If you have any questions, feel free to leave a comment below. Also if you want to make out more of your Windows Terminal, check out my blogs:
- My Customized Windows Terminal Settings.json
- My Windows Terminal Color Schemes
- Install the new Windows Terminal for Windows 10
- How to open Windows Terminal from Command Prompt or Run
- How to Change the Windows Terminal Background Image
- How to SSH into an Azure VM from Windows Terminal Menu
- Add a PowerShell Remote Session in Windows Terminal
If you want to provide feedback for Windows and Windows Server, the team wants to hear from you!
The most important part of a frequent release cycle is to hear what’s working and what needs to be improved, so your feedback is extremely valued. For Windows Server, use your registered Windows 10 Insider device and use the Feedback Hub application. In the app, choose the Windows Server category and then the appropriate subcategory for your feedback. In the title of the Feedback, please indicate the build number you are providing feedback on as shown below:
[Server #####] Title of my feedback
Have fun!
Tags: install, Microsoft, MSIX, Terminal, Windows Server, Windows Server 2022, Windows Terminal Last modified: February 8, 2023
About the Author / Thomas Maurer
Thomas works as a Principal Program Manager & Chief Evangelist Azure Hybrid at Microsoft (Cloud + AI). He engages with the community and customers around the world to share his knowledge and collect feedback to improve the Azure hybrid cloud and edge platform. Prior to joining the Azure engineering team (Cloud + AI), Thomas was a Lead Architect and Microsoft MVP, to help architect, implement and promote Microsoft cloud technology.
If you want to know more about Thomas, check out his blog: www.thomasmaurer.ch and Twitter: www.twitter.com/thomasmaurer
What is Windows Terminal?
The Windows Terminal is a modern, fast, efficient, powerful, and productive terminal application for users of command-line tools and shells like Command Prompt, PowerShell, and WSL. Its main features include multiple tabs, panes, Unicode and UTF-8 character support, a GPU accelerated text rendering engine, and custom themes, styles, and configurations. -https://www.microsoft.com/en-US/p/windows-terminal/9n0dx20hk701
- Log into the Server 2022 device
- Download the latest Windows Terminal release Download
- Open File Explorer and navigate to the download location
- Rename the downloaded msixbundle Microsoft.WindowsTerminal.msixbundle
- While holding Shift, right click in the whitespace > Open PowerShell window here
- Run the following command in Powershell
# install Windows Terminal
Add-AppxPackage -Path .\Microsoft.WindowsTerminal.msixbundle - That’s it! Windows Terminal is now installed on Server 2022
On Windows Server 2022 (and 2019), you can install the Windows Terminal, but since the operating system doesn’t include the Microsoft Store app or the Windows Package Manager (winget) platform, which means you will need to use a workaround.
The Windows Terminal is the console application that Microsoft has built to be the new command experience to run Command Prompt, PowerShell, and Linux commands. The command-line console was primarily designed for Windows 11 and 10, but you can also install it on Windows Server 2022. The application offers support for tabs and a bunch of customization settings, including the ability to create custom profiles for different applications.
This guide will teach you how to install the Windows Terminal console on Windows Server 2022 and older versions.
To install the Windows Terminal console on Windows Server, use these steps:
-
Open Start on Windows Server 2022.
-
Search for PowerShell, right-click the top result, and select the Run as administrator option.
-
Type the following command to download the runtime libraries and press Enter:
Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -outfile Microsoft.VCLibs.x86.14.00.Desktop.appx
-
Type the following command to install the “.appx” package and press Enter:
Add-AppxPackage Microsoft.VCLibs.x86.14.00.Desktop.appx
-
Type the following command to download the latest version of the Windows Terminal and press Enter:
Invoke-WebRequest -Uri https://github.com/microsoft/terminal/releases/download/v1.16.10261.0/Microsoft.WindowsTerminal_Win10_1.16.10261.0_8wekyb3d8bbwe.msixbundle -outfile Microsoft.WindowsTerminal_Win10_1.16.10261.0_8wekyb3d8bbwe.msixbundle
Quick note: You must change the download link to the latest Windows Terminal version. You can find this information on the GitHub page. Under the “Assets” section, right-click the latest “.msixbundle” link and copy the path.
-
Type the following command to install the Windows Terminal application and press Enter:
Add-AppxPackage Microsoft.WindowsTerminal_Win10_1.16.10261.0_8wekyb3d8bbwe.msixbundle
Once you complete the steps, the terminal will install on Windows Server.
You can also use the same instructions to upgrade to a new version of the command console. However, you will need to use the legacy PowerShell console to complete the process because you cannot upgrade the terminal while the application is running.
We may earn commission for purchases using our links to help keep offering the free content. Privacy policy info.
All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.
Windows Terminal это новый терминал для удобной работы с утилитами командной строки и оболочками cmd.exe, powershell. Терминал поддерживает вкладки, панели, настройку собственных профилей, стилей и конфигураций. Если у вас установлен WSL или Azure Cloud Shell, оболочки для этих сред автоматически добавляются в консоль Windows Terminal.
Консоль Windows Terminal предустановлена в Windows 11 и Windows 10 22 H2. В остальных версиях Windows его нужно устанавливать вручную. Microsoft рекомендует устанавливать Windows Terminal через Microsoft Store, в этом случае вы гарантированно получите последнюю версию терминала, которая будет обновляться автоматически (https://www.microsoft.com/en-us/p/windows-terminal/9n0dx20hk701?activetab=pivot:overviewtab).
Если у вас отключен, отсутствует или поврежден Microsoft Store (например, в Windows 10 LTSC или в Windows Server 2022), вы можете установить Windows Terminal:
- Вручную скачайте последний релиз Windows Terminal с GitHub и установите файл MSIX в Windows;
- Воспользуйтесь менеджером пакетов Chocolatey или WinGet.
Чтобы вручную установить Windows Terminal, нужно скачать msixbundle пакет с официальной страницы проекта на GitHub https://github.com/microsoft/terminal/releases. Найдите последний релиз терминала для вашей версии Windows в разделе Asset и скачайте файл.
Можно скачать файл с помощью командлета Invoke-WebRequest:
Invoke-WebRequest -Uri https://github.com/microsoft/terminal/releases/download/v1.16.10261.0/Microsoft.WindowsTerminal_Win10_1.16.10261.0_8wekyb3d8bbwe.msixbundle
Установите пакет в Windows с помощью командлета Add-AppxPackage:
Add-AppxPackage -Path .\Microsoft.WindowsTerminal_Win10_1.16.10261.0_8wekyb3d8bbwe.msixbundle
Проверьте, что пакет успешно установился:
Get-AppxPackage *WindowsTerminal* -AllUsers
Если вы используете версию PowerShell Core 7.x, нужно предварительно импортировать модуль установки пакетов AppX / MSIX):
Import-Module Appx -UseWindowsPowerShell
При ручной установке Windows Terminal в старых версиях Windows 10 может появиться ошибка:
Add-AppPackage : Deployment failed with HRESULT: 0x80073CF3, Package failed updates, dependency or conflict validation. Windows cannot install package Microsoft.WindowsTerminal_Win10_1.16.10261.0_8wekyb3d8bbwe.msixbundle because this package depends on a framework that could not be found. Provide the framework "Microsoft.VCLibs.140.00.UWPDesktop" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version 14.0.30035.0, along with this package to install. The frameworks with name "Microsoft.VCLibs.140.00.UWPDesktop" currently installed are .....
Перед установкой пакета Microsoft.WindowsTerminal нужно скачать и установить фреймворк VCLibs. Скачайте пакет VCLibs с официальной страницы загрузки (https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/cpp/libraries/c-runtime-packages-desktop-bridge) и установите его с помощью команды:
Add-AppPackage .\Microsoft.VCLibs.x64.14.00.Desktop.appx
При установке пакета Microsoft.WindowsTerminal в Windows Server 2019 или 2016 появляется ошибка:
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CFD, A Prerequisite for an install could not be satisfied. Windows cannot install package Microsoft.WindowsTerminal_1.16.10261.0_x64__8wekyb3d8bbwe because this package is not compatible with the device. The package requires OS version 10.0.19041.0 or higher on the Windows.Mobile device family. The device is currently running OS version 10.0.17763.107.
Как вы видите, пакет проверяет ОС при установке. Для установки Windows Terminal нужен билд не ниже Windows 1903 (10.0.18362.0). Таким образом, установить Windows Terminal на Windows Server 2019 не удастся.
Если у вас появляется ошибка 0x80073CFD в Windows 10, попробуйте установить обновления или использовать более раннюю версию Microsoft.WindowsTerminal.
Также вы можете скачать и установить последнюю версию пакета Microsoft.WindowsTerminal с помощью менеджера пакетов WinGet:
winget install --id=Microsoft.WindowsTerminal -e
Или с помощью chocolatey:
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install microsoft-windows-terminal
Можно установить старую версию пакета:
choco install -y microsoft-windows-terminal --version 1.12.10732.0
При установке пакета через choco install на Windows Server 2019 появляется ошибка:
ERROR: This package requires at least Windows 10 version 1903/OS build 18362.x. The install of microsoft-windows-terminal was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyInstall.ps1'.
Для запуска Windows Terminal выполните команду:
wt.exe
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
Write-Information «This script needs be run on Windows Server 2019 or 2022« | |
If ($PSVersionTable.PSVersion.Major -ge 7){ Write-Error «This script needs be run by version of PowerShell prior to 7.0« } | |
# Define environment variables | |
$downloadDir = «C:\WinTerminal« | |
$gitRepo = «microsoft/terminal« | |
$filenamePattern = «*.msixbundle« | |
$framworkPkgUrl = «https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx« | |
$framworkPkgPath = «$downloadDir\Microsoft.VCLibs.x64.14.00.Desktop.appx« | |
$msiPath = «$downloadDir\Microsoft.WindowsTerminal.msixbundle« | |
$releasesUri = «https://api.github.com/repos/$gitRepo/releases/latest« | |
$downloadUri = ((Invoke-RestMethod —Method GET —Uri $releasesUri).assets | Where-Object name -like $filenamePattern ).browser_download_url | Select-Object —SkipLast 1 | |
# Download C++ Runtime framework packages for Desktop Bridge and Windows Terminal latest release msixbundle | |
Invoke-WebRequest —Uri $framworkPkgUrl —OutFile ( New-Item —Path $framworkPkgPath —Force ) | |
Invoke-WebRequest —Uri $downloadUri —OutFile ( New-Item —Path $msiPath —Force ) | |
# Install C++ Runtime framework packages for Desktop Bridge and Windows Terminal latest release | |
Add-AppxPackage —Path $framworkPkgPath | |
Add-AppxPackage —Path $msiPath | |
# Cleanup | |
Remove-Item $downloadDir —Recurse —Force |