当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] 如何在 Windows Server 2022 上安装 Windows 终端

作者:精品下载站 日期:2024-12-14 07:37:45 浏览:13 分类:玩电脑

如何在 Windows Server 2022 上安装 Windows 终端


只有 Microsoft 知道为什么 Windows Terminal 只能在客户端操作系统上使用。但还有一条出路。我们还可以通过 PowerShell 在 Windows Server 上安装 Windows Terminal。缺点是终端不通过 Windows 更新进行更新。这是可以忍受的。那么让我们开始吧。

将以下代码复制到 ISE 或 Visual Studio code 中。
请注意,您需要在第 2 行中输入最新版本的 Windows Terminal。它是一个 URL,我在本文中使用的是 1.16 版本。

# 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)

等待代码完成,您将在“开始”菜单中找到 Windows Terminal。

[玩转系统] 如何在 Windows Server 2022 上安装 Windows 终端

效果很好。下次见。

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯