Remote Desktop is a well-known facility for Windows 11/10 computers that lets you connect two computers or mobile so that an individual can access another computer remotely. You can fix some problems on the computer via mobile or do other jobs according to your requirements. You need a Remote Desktop client like Microsoft Remote Desktop or so on your mobile to connect two devices. It is possible to enable to disable Remote Desktop via Windows Settings. You need to head to System > Remote Desktop to access the option. However, let’s assume that the Windows Settings panel is not opening due to some reasons, and you need to turn on the Remote Desktop feature. Then you can use this method to start the Remote Desktop using the command line.

Enable Remote Desktop using Command line

To enable Remote Desktop using Command Prompt and Windows PowerShell, follow these steps- The commands are not the same for Command Prompt and Windows PowerShell.

1] Enable RDP firewall using Command Prompt

To get started, open the Command Prompt with administrator privilege. You can search for it in the Taskbar search box, and click the Run as administrator option that appears on your screen. After that, enter this following command and hit Enter: By default, the value of fDenyTSConnections is set to 1. This command will change the value to 0. Next, execute the following command: This command will add and update three rules in the Firewall so that you can start using the Remote Desktop.

2] Enable RDP using Windows PowerShell

You need to open the Windows PowerShell with administrator privilege and enter the following command and hit Enter: This command will change the fDenyTSConnections value to 0. Now, you need to execute the following command to add rules in the Firewall: After that, you will be able to use Remote Desktop in Windows 10. In case you want to disable Remote Desktop using Command Prompt and Windows PowerShell, you need to enter these steps.

Disable Remote Desktop using Command Prompt or PowerShell

To disable Remote Desktop using Command Prompt and Windows PowerShell, follow these steps- To know more, you need to read on.

Disable Remote Desktop using Command Prompt

You need to set the default value of fDenyTSConnections as 1. For that, use this command- Now you need to remove rules from the Firewall. For that, use this command-

Disable Remote Desktop using PowerShell

You need to change the value of fDenyTSConnections as 1. You can do that by using this command- The second command will let you remove the rules from the Firewall: That’s all! I hope this simple tutorial will be helpful for you.