Easily install the new Windows Terminal or Windows Terminal Preview on Windows Server 2022 and newer.
Inspired by: microsoft/terminal#13983 (reply in thread)
The script performs calls to a GitHub API to find the latest Windows Terminal
and Windows Terminal Preview
versions available.
# Example 1: Installing for current user.
& .\Install-WindowsTerminal.ps1
# Example 2: Installing for all users.
& .\Install-WindowsTerminal.ps1 -Scope AllUsers
# Example 3: Installing Preview version for current user.
& .\Install-WindowsTerminal.ps1 -Preview
# Example 4: Installing Preview version for all users.
& .\Install-WindowsTerminal.ps1 -Scope AllUsers -Preview
Install-WindowsTerminal.ps1 can be used as offline installer.
Using computer with internet access download offline content for desired version.
# Example 1: Download files for Windows Terminal offline installation.
& .\Install-WindowsTerminal.ps1 -DownloadOnly
# Example 2: Download files for Windows Terminal Preview offline installation.
& .\Install-WindowsTerminal.ps1 -Preview -DownloadOnly
# Example 1: Installation of Windows Termina for all users, using cached files in the script directory.
& .\Install-WindowsTerminal.ps1 -Scope AllUsers -OfflineInstall
# Example 2: Installation of Windows Terminal Preview for all users, using cached files in the script directory.
& .\Install-WindowsTerminal.ps1 -Scope AllUsers -Preview -OfflineInstall