
You must be logged in to a shell prompt (cmd or PowerShell) that has full administrative access to do so. In these situations, it is still possible to enable (or disable) RDP by setting a registry value. For example, you are pre-configuring a build for deployment, you are repairing a system while in recovery mode, or you only have SSH access to your server, but no KVM. Unfortunately, you may not be logged in to Windows itself, or do not have physical access to the desktop. Sometimes, you may with to allow Remote Desktop Protocol so you can manage your computer or server remotely. To enable RDP: reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f To disable RDP: reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f Solution Run the required command from shell with Administrative privileges. If you like this article, please share, subscribe or you can follow our Facebook Page and Twitter.Enable or Disable RDP via Command Line (Windows)Īllow or prohibit Remote Desktop connections to your Windows machine through Command Prompt or PowerShell. Add-AppxPackage -path Īdd-AppxPackage -path C:\Install\Microsoft.WindowsTerminal_.0_8wekyb3d8bbwe.msixbundleįor your information, if you install Windows Terminal manually like this, it will not automatically update itself.

Now you can run the following PowerShell command to add the MSIX Bundle and install the Windows Terminal on Windows Server 2022.

Invoke-WebRequest -Uri Install Windows Terminal On Windows Server 2022

In some cases, you may need to install the PreInstallKit.zip first.In this case, I’m trying to download Windows Terminal v1.14.186 First, get the MSIX bundle download link from the GitHub Release page.

You can also use PowerShell to download the MSIX bundle.
