Программа terminal для windows server

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.

Install Windows Terminal on Windows Server 2022

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

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:

  1. Open Start on Windows Server 2022.

  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.

  3. 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

    PowerShell download VClibs

  4. Type the following command to install the “.appx” package and press Enter:

    Add-AppxPackage Microsoft.VCLibs.x86.14.00.Desktop.appx
  5. 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

    PowerShell download Terminal

    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.

  6. 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

Add-AppxPackage ручная установка Microsoft.WindowsTerminal из msixbundle

Если вы используете версию 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.

Microsoft.WindowsTerminal ошибка 0x80073CFD, A Prerequisite for an install could not be satisfied.

Как вы видите, пакет проверяет ОС при установке. Для установки 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

winget установка Microsoft.WindowsTerminal

Или с помощью 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'.

choco install microsoft-windows-terminal ERROR: This package requires at least Windows 10 version 1903/OS build 18362.x

Для запуска Windows Terminal выполните команду:

wt.exe

консоль windows terminal (wt.exe) в windows

Windows Terminal is an open-source terminal application for Windows. It provides users with a modern, fast, efficient, and powerful command-line experience, allowing them to access multiple shells and command-line tools in a single window. Windows Terminal is highly customizable, enabling users to personalize their command-line experience to suit their preferences and needs.

In this blog post, we will discuss why you need to install Windows Terminal on your Windows Server 2019 machine. We will also explore four different methods to install Windows Terminal, along with detailed steps for each method. Additionally, we will provide some fixes in case you encounter any issues during the installation process. Lastly, we will share three bonus tips and address some frequently asked questions about Windows Terminal.

Video Tutorial:

There are several reasons why installing Windows Terminal on your Windows Server 2019 machine is beneficial:

1. Improved Command-Line Experience: Windows Terminal provides a modern and feature-rich command-line experience compared to the default Command Prompt. It allows you to open multiple tabs, each with its own shell and profile settings, making it easier to manage and switch between different command-line tools and environments.

2. Enhanced Productivity: Windows Terminal offers a wide range of customization options, allowing you to personalize your command-line experience to boost productivity. You can customize the appearance, colors, font, and more, making it easier to distinguish between different tasks and commands.

3. Support for Multiple Shells: Windows Terminal supports a variety of shells, including PowerShell, Command Prompt, Azure Cloud Shell, and even Linux distributions through the Windows Subsystem for Linux (WSL). This versatility enables you to work with different command-line tools and environments seamlessly within a single window.

4. Rich Features and Functionality: Windows Terminal comes with several built-in features and functionalities that enhance your command-line experience. It supports Unicode and UTF-8 characters, enabling you to work with text in various languages and scripts. It also supports advanced text rendering and rendering acceleration, ensuring a smooth and visually appealing display.

Method 1: How to Install Windows Terminal via Microsoft Store

Before we begin with the installation steps, let’s understand the process of installing Windows Terminal via the Microsoft Store:

1. Launch the Microsoft Store application on your Windows Server 2019 machine.
2. Search for «Windows Terminal» in the search bar at the top-right corner.
3. Click on the Windows Terminal app from the search results.
4. On the Windows Terminal app page, click on the «Get» button.
5. Wait for the installation process to complete.
6. Once installed, you can launch Windows Terminal from the Start menu or by searching for it.

Pros Cons
1. Easy and straightforward installation process through the Microsoft Store. 1. Limited to Windows 10 and Windows Server 2019 machines with access to the Microsoft Store.
2. Automatic updates for Windows Terminal through the Microsoft Store. 2. Requires a Microsoft account to download and install apps from the Microsoft Store.
3. Provides a seamless installation experience with no additional configuration required. 3. May encounter compatibility issues with older versions of Windows Server.

Method 2: How to Install Windows Terminal via Package Manager

Installing Windows Terminal via a package manager is an alternative method to the Microsoft Store. It allows you to install and manage software packages directly from the command line. Here are the steps to install Windows Terminal using popular package managers such as Chocolatey and Windows Package Manager (winget):

Step 1: Install Chocolatey (if not already installed):
Open Command Prompt or PowerShell as an administrator and run the following command:
«`
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&#8217;))
«`

Step 2: Install Windows Terminal via Chocolatey:
Open Command Prompt or PowerShell as an administrator and run the following command:
«`
choco install microsoft-windows-terminal
«`

Step 3: Install Windows Terminal via Windows Package Manager (winget):
Open Command Prompt or PowerShell and run the following command:
«`
winget install microsoft.windows-terminal
«`

Pros Cons
1. Package managers offer a convenient and automated way to install and manage software packages. 1. Requires installation of a package manager (e.g., Chocolatey) before installing Windows Terminal.
2. Allows for easy updating and uninstallation of Windows Terminal through the package manager. 2. May require additional configuration or setup for the package manager.
3. Provides a command-line interface for streamlined installation and management. 3. Compatibility may vary depending on the package manager and Windows Server version.

Method 3: How to Install Windows Terminal via GitHub Releases

Installing Windows Terminal via GitHub releases allows you to download the installation package directly from the official Windows Terminal repository on GitHub. Here are the steps to install Windows Terminal using this method:

1. Open your preferred web browser and navigate to the Windows Terminal repository on GitHub (https://github.com/microsoft/terminal).
2. Click on the «Releases» tab in the repository.
3. Scroll down to the latest release and download the installation package (.msixbundle file) corresponding to your system architecture (e.g., x64 or ARM64).
4. Once the download is complete, locate the downloaded .msixbundle file on your machine and double-click on it.
5. Follow the on-screen instructions to complete the installation process.
6. After the installation is finished, you can launch Windows Terminal from the Start menu or by searching for it.

Pros Cons
1. Allows direct downloads of the Windows Terminal installation package from the official repository. 1. Requires manual downloading and installation of Windows Terminal.
2. Provides control over the specific version of Windows Terminal to be installed. 2. May not support automatic updates without manually downloading and installing newer releases.
3. Offers flexibility for systems without access to the Microsoft Store or package managers. 3. May require additional steps or dependencies to ensure proper installation.

Method 4: How to Install Windows Terminal via Winget Command-line Tool

Windows Package Manager (winget) is a built-in command-line tool introduced in Windows 10 2004 (May 2020 Update). It allows you to search, install, update, and uninstall software packages from the command line. Here are the steps to install Windows Terminal using winget:

1. Open Command Prompt or PowerShell as an administrator.
2. Run the following command to update the winget tool (if already installed):
«`
winget upgrade
«`

3. Run the following command to search for the Windows Terminal package:
«`
winget search terminal
«`

4. Identify the Windows Terminal package from the search results and note its unique identifier (e.g., `Microsoft.WindowsTerminal`).
5. Run the following command to install Windows Terminal:
«`
winget install –id «`
Replace « with the actual identifier of the Windows Terminal package.

6. Wait for the installation process to complete.
7. Once installed, you can launch Windows Terminal from the Start menu or by searching for it.

Pros Cons
1. Built-in command-line tool for managing software packages. 1. Requires Windows 10 2004 (May 2020 Update) or later with winget support.
2. Offers an automated and efficient installation process. 2. Limited to Windows 10 and later versions.
3. Allows for easy updating, uninstallation, and search for software packages. 3. May not support automatic updates without explicitly running the upgrade command.

What to Do If You Can’t Install Windows Terminal

If you encounter any issues while trying to install Windows Terminal, here are some steps you can take to troubleshoot and resolve the problem:

1. Verify System Requirements: Ensure that your Windows Server 2019 machine meets the system requirements for Windows Terminal. Check if you have the necessary updates and prerequisites installed.

2. Check Microsoft Store Availability: If you’re unable to install Windows Terminal via the Microsoft Store, consider alternative installation methods such as package managers or GitHub releases.

3. Disable Antivirus or Firewall: Temporarily disable any antivirus or firewall software that may be blocking the installation process. Sometimes, these security measures can interfere with the installation of certain applications.

4. Run as Administrator: If you’re encountering permission issues during the installation process, try running the installation as an administrator. Right-click on the installation package or executable and select «Run as administrator.«

5. Clear Temporary Files: Clearing temporary files on your system can help resolve installation issues. Use tools like Disk Cleanup to delete temporary files and free up disk space before attempting the installation again.

6. Seek Community Support: If you’re still unable to install Windows Terminal, consider seeking help from the Windows Terminal community. Visit forums, developer platforms, or official documentation to find solutions or report any known issues.

Bonus Tips

Here are three bonus tips to enhance your Windows Terminal experience:

1. Customize Color and Appearance: Take advantage of Windows Terminal’s customization options to personalize the color scheme and appearance. You can modify settings like background color, font, cursor shape, and even apply custom themes to make Windows Terminal reflect your style.

2. Use Keyboard Shortcuts: Windows Terminal supports various keyboard shortcuts to streamline your workflow. Familiarize yourself with shortcuts for opening new tabs, switching between tabs, splitting panes, and other actions to improve productivity.

3. Take Advantage of Profiles: Windows Terminal allows you to create and manage profiles for different shells and command-line tools. Utilize profiles to define specific settings, startup commands, and even custom icons for each shell, allowing you to switch between different environments quickly.

5 FAQs

Q1: Can Windows Terminal be installed on Windows 7 or earlier versions?

A1: No, Windows Terminal is only compatible with Windows 10 and Windows Server 2019 or later versions. It leverages underlying technologies and features introduced in these operating systems.

Q2: Can I uninstall Windows Terminal after installing it?

A2: Yes, you can uninstall Windows Terminal like any other application. Open the «Settings» app, go to «Apps,» locate Windows Terminal in the list of installed apps, and click on the «Uninstall» button.

Q3: Can I set Windows Terminal as the default terminal in Windows Server 2019?

A3: Windows Terminal cannot be set as the default terminal in Windows Server 2019 directly. However, you can create shortcuts or update your workflow to use Windows Terminal as the default terminal emulator.

Q4: Can I use Windows Terminal with SSH or other remote access protocols?

A4: Yes, Windows Terminal is compatible with SSH and other remote access protocols. You can configure a profile in Windows Terminal to establish SSH connections or connect to remote servers using other protocols.

Q5: Is it possible to open multiple tabs with different shells in Windows Terminal?

A5: Yes, Windows Terminal allows you to open multiple tabs, each with its own shell or command-line tool. You can switch between tabs using keyboard shortcuts or the tab bar at the top of the window.

Final Thoughts

Installing Windows Terminal on your Windows Server 2019 machine can significantly enhance your command-line experience. With its modern interface, support for multiple shells, and extensive customization options, Windows Terminal offers a powerful and versatile tool for developers, system administrators, and regular users alike.

In this blog post, we explored four methods to install Windows Terminal: via the Microsoft Store, package managers like Chocolatey and winget, GitHub releases, and using the winget command-line tool. We also provided some fixes in case you encounter issues during the installation process and shared bonus tips to maximize your Windows Terminal usage.

Remember to take advantage of the various customization options, keyboard shortcuts, and profiles available in Windows Terminal to tailor your command-line experience to your liking. By doing so, you can boost productivity and streamline your workflow when working with command-line tools and shells on your Windows Server 2019 machine.

Microsoft has developed a new Command-Line program for Windows. The program is designed to become an integrated environment for access to environments such as PowerShell, CMD, and WSL (Microsoft’s Linux subsystem). Microsoft is also adding functionalities such as support for multiple tabs in the new terminal, as well as customization for developers who want to upgrade the terminal. Windows Terminal supports GPU Based Text Rendering. In this article, we are going to teach you How to Install Windows Terminal on Windows 10 and Windows Server 2019. You can see the packages available in Eldernode if you want to buy a Windows VPS server.

Table of Contents

Windows has placed its terminal emulator as an open-source on GitHub. In this tutorial, we’ll use the Chocolatey package manager for this installation. Stay tuned for the rest of this article.

How to Install Chocolatey on Windows

First, you should ensure that you are using an administrative shell. Run PowerShell as administrator:

Then, Type and run the command below:

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))   

In the next section, the installation begins. Wait for the installation to complete:

You should not receive any errors, because your installation process is done correctly. Use Getting Started to use the following commands:

choco  

or

choco -?  

It’s time to use choco to install the Windows terminal.

Install Windows Terminal on windows 10 | server 2019

After you were able to successfully install Chocolatey on Windows in the previous section, now we want to discuss how to install the Windows terminal. To do this, just follow the steps below.

Run PowerShell and type the following command:

choco install microsoft-windows-terminal   

After executing the above command, the installation process begins.

After installing the program, search for Windows Terminal from the search section in Windows.

To upgrade Windows Terminal using Chocolatey, run the following command:

choco upgrade microsoft-windows-terminal   

You can now easily use the Windows Terminal app in Windows 10 and Windows Server 2019.

Conclusion

In this article, we tried to teach you to step by step How to Install Windows Terminal on Windows 10 | Server 2019. You can refer to the article How to Use Chocolatey Package Manager on Windows if you wish.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Значок paint windows 10
  • Как проверить hdd диск на работоспособность windows 10
  • Как снять защиту от записи на флешке на windows 7
  • Как временно активировать windows 10
  • Гарантированное удаление файлов windows