Windows-terminal is een nieuwe terminaltoepassing die is ontworpen om het gebruik van opdrachtregelprogramma's, cmd.exe en Powershell-omgevingen eenvoudig te maken. De Windows Terminal ondersteunt tabbladen, waarmee u uw eigen profielen, stijlen en configuraties kunt instellen. Als je hebt WSL of Azure Cloud Shell is geïnstalleerd, worden de shells voor deze omgevingen automatisch toegevoegd aan de Windows Terminal-console.
De Windows Terminal-console is vooraf geïnstalleerd op Windows 11 en Windows 10 22 H2. Op andere versies van Windows moet het handmatig worden geïnstalleerd. De officiële aanbeveling van Microsoft is om Windows Terminal vanuit de Microsoft Store te installeren om er zeker van te zijn dat u over de nieuwste versie beschikt, die automatisch wordt bijgewerkt (https://www.microsoft.com/en-us/p/windows-terminal/9n0dx20hk701?activetab=pivot: overzichttabblad).
Als de De Microsoft Store-app ontbreekt of is beschadigd (bijvoorbeeld in Windows 10LTSC of Windows Server 2022), kunt u Windows Terminal op een van de volgende manieren installeren:
- Door handmatig de nieuwste Windows Terminal-release van GitHub te downloaden en het MSIX-bestand in Windows te installeren;
- Door de pakketbeheerder Chocolatey of WinGet te gebruiken.
Voor een handmatige installatie van Windows Terminal moet u het msixbundel pakket van de officiële GitHub van het project https://github.com/microsoft/terminal/releases. Zoek de nieuwste Terminal-release voor uw versie van Windows in de Bezit sectie en download het bestand.
Je kunt gebruiken de cmdlet Invoke-WebRequest om het installatiebestand te downloaden:
Invoke-WebRequest -Uri https://github.com/microsoft/terminal/releases/download/v1.18.3181.0/Microsoft.WindowsTerminal_1.18.3181.0_8wekyb3d8bbwe.msixbundle
Installeer vervolgens het pakket in Windows met behulp van de Add-AppxPackage cmdlet:
Add-AppxPackage -Path .\Microsoft.WindowsTerminal_1.18.3181.0_8wekyb3d8bbwe.msixbundle
Controleer of het pakket succesvol is geïnstalleerd::
Get-AppxPackage *WindowsTerminal* -AllUsers
Import-Module Appx -UseWindowsPowerShell
De volgende fout kan optreden wanneer u Windows Terminal handmatig installeert op oudere Windows 10-builds:
Add-AppPackage: Deployment failed with HRESULT: 0x80073CF3, Package failed updates, dependency or conflict validation. Windows cannot install package Microsoft.WindowsTerminal_1.18.3181.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... You must download and install the VCLibs framework before installing the Microsoft.WindowsTerminal package.
Download de VCLibs pakket (https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/cpp/libraries/c-runtime-packages-desktop-bridge) en installeer het met behulp van de opdracht:
Add-AppPackage .\Microsoft.VCLibs.x64.14.00.Desktop.appx
Bij het installeren van Microsoft. WindowsTerminal-pakket op Windows Server 2019 of 2016, krijgt u mogelijk nog een foutmelding:
Add-AppxPackage: Deployment failed with HRESULT: 0x80073CFD, A Prerequisite for an install could not be satisfied. Windows cannot install package Microsoft.WindowsTerminal_1.18.3181.0_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.
Hier kunt u zien dat het pakket tijdens de installatie het besturingssysteem controleert. Om Windows Terminal te installeren, hebt u een versie van Windows 1903 (10.0.18362.0) of nieuwer nodig. Als gevolg hiervan kunt u Windows Terminal niet installeren op Windows Server 2019. In dit geval kunt u gebruik maken van de zelfstandige klassieke Windows Terminal-applicatie, die beschikbaar is op GitHub sinds versie v1.17.11391.0. Download de Microsoft. WindowsTerminal_1.18.3181.0_x64.zip archiveren en uitpakken naar een map op uw lokale schijf.
Als u de 0x80073CFD
fout in Windows 10, probeer updates te installeren of gebruik een eerdere versie van Microsoft. WindowsTerminal.
U kunt ook de nieuwste versie van Microsoft downloaden. WindowsTerminal-pakket en installeer het met behulp van het WinGet-pakketbeheerder:
winget install --id=Microsoft.WindowsTerminal -e
Of met chocolade:
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install microsoft-windows-terminal
Het is mogelijk om een oudere versie van het pakket te installeren:choco install -y microsoft-windows-terminal --version 1.12.10732.0
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'.
Om Windows Terminal uit te voeren, voert u ten slotte de opdracht uit:
wt.exe