How to Enable Remote Desktop using PowerShell on Windows 11 or 10

The Remote Desktop feature allows you to connect to a computer remotely. You can connect to a computer remotely through Remote Desktop protocol and control your computer without being physically present at the location.

Although we can enable the Remote Desktop feature using Windows Settings and Command Prompt, you can also enable and disable it through Windows PowerShell. By using this method, you can create a script that you can use to enable and disable the Remote Desktop with one click.

In this guide, we will show you how to enable Remote Desktop using PowerShell on a Windows computer.

Important: The Remote Desktop is not available on the Windows 11/10 Home edition. However, you can use the Chrome Remote Desktop to connect to a PC remotely.

How to enable Remote Desktop using PowerShell

  1. Click the Start Menu button.
  2. In the Search Box, type the PowerShell.
  3. Right-click the PowerShell and select Run as administrator.
  4. In the PowerShell, type the following command and the hit the Enter button to enable the Remote Desktop.
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 0
Remote Desktop
  1. If you want to enable the Remote Desktop through Windows Firewall, then run the Following command (This is an optional).
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"

Once you have completed all the above steps, you’re ready to connect to a computer using the Remote Desktop protocol.

Related articles:

How to disable Remote Desktop using PowerShell

  1. In the TaskBar search, type the PowerShell.
  2. Once you get the PowerShell in the search result, right-click the PowerSell and select Run as administrator.
  3. In the PowerShell, type the following command and then hit the enter button to disbale the Remote Desktop protocol.
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 1
Remote Desktop
  1. To disbale the Remote Desktop through Windows Firewall, use the following command (This is an optional).
Disable-NetFirewallRule -DisplayGroup "Remote Desktop"

Once you have completed all the steps, the Remote Desktop protocol will be enabled on your Windows Computer. Now you will be able to control your PC remotely.

This is all about how to enable Remote Desktop using PowerShell. I hope this guide is helpful for you. If you have any feedback, feel free to mention it below in the command section.

Leave your reply here

Scroll to Top
Windows 11

Windows 11 is now officially available. Have you not upgrade to Windows 11 yet? This time to upgrade to the new Windows 11.

Read more - Free Download Windows 11 ISO: Upgrade Free to Windows 11