How to enable Remote Desktop Windows 10 as administrator

How to enable Remote Desktop using Command Prompt on Windows 10

On Windows 10, you can use the Remote Desktop feature to access a computer or server remotely to help other users or manage services without having to be present at the location physically.

Although you can manage the feature through the Settings app, you can also enable or disable Remote Desktop on Windows 10 using commands with Command Prompt or PowerShell. You may want to use this method to create a script to configure Remote Desktop on multiple computers more quickly. Or you can send the script to a user, allowing them to set up the feature without additional steps automatically.

In this guide, you will learn the steps to use Command Prompt to enable or disable Remote Desktop and open the required firewall ports for a successful connection on Windows 10.

Important: Remote Desktop is not a feature available on Windows 10 Home. It is only on Windows 10 Pro, Enterprise, and Education. It is also recommended that you do a full backup of your computer before proceeding, as modifying the registry incorrectly can cause irreversible damage to your system.

Enable Remote Desktop using Command line

To enable Remote Desktop using Command Prompt and Windows PowerShell, follow these steps-

  1. Open Command Prompt or PowerShell with administrator privilege
  2. Set value of fDenyTSConnections REG DWORD to 0
  3. Add a Firewall rule
  4. Restart your computer
  5. Start using Remote Desktop in Windows 10.

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:

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

By default, the value of fDenyTSConnections is set to 1. This command will change the value to 0.

Next, execute the following command:

netsh advfirewall firewall set rule group="remote desktop" new enable=yes

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:

Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0

This command will change the fDenyTSConnections value to 0. Now, you need to execute the following command to add rules in the Firewall:

Enable-NetFirewallRule -DisplayGroup "Remote Desktop"

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.

Related: Remote Desktop option is greyed out.

8 Replies

· · ·

Cayenne

OP

B4dyce75

This person is a verified professional.

Verify your account to enable IT peers to see that you are a professional.

Apr 23, 2019 at 00:59 UTC

So, just so I am understanding you correctly: you have created your Windows 10 VM and you can log onto the VM using the domain admin credentials. When you are saying you can't enable "Remote Desktop", are we to understand that you can use RDP with the domain admin account but you can't using another domain account? If that is the case, then you would probably need to add the domain user you are wanting to log in with to the local "Remote Desktop Users" group - Control Panel>User Accounts>Manage User Accounts and then click on the "Advanced" tab, click the "Advanced" button and then open the "Groups" folder, click on the Remote Desktop Users group and then add the domain account you are trying to use.

0

· · ·

Jalapeno

OP

syedaijazsabirhussaini

This person is a verified professional.

Verify your account to enable IT peers to see that you are a professional.

Apr 23, 2019 at 01:16 UTC

You could try editing this policy setting in your main GPO

Computer Configuration > Windows Settings > Security Settings > Local Policies

Can also check if network profile is set to public or private.

Can check settings in administrative tools - remote desktop services

Have a look at the link below

//answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_desktop/rdp-session-crashesdisconnects-logonuiexe-faulting/87d76f3f-72f1-40e5-9e69-8feee1f98ee5?page=2

0

· · ·

Cayenne

OP

seannoy2

This person is a verified professional.

Verify your account to enable IT peers to see that you are a professional.

Apr 23, 2019 at 03:59 UTC

Try running gprsult /h c:\temp\res.html
And check the file in the folder to view which GPOs are being applied
Best
Sean

0

· · ·

Poblano

OP

Tamizh

This person is a verified professional.

Verify your account to enable IT peers to see that you are a professional.

Apr 23, 2019 at 04:41 UTC

Hi,

log-in to VM and open the elevated command prompt/ PowerShell and type "lusrmgr.msc" > local and user and Group window will open > go to > Group > Administrator > add the user to the group. restart the VM and try to configure the RDP

Make sure the Network Profile set to Private

Note: Instead of using domain admin account, create new user and log-in to VM and try the above setting

0

· · ·

Sonora

OP

Shaz J Apr 23, 2019 at 08:03 UTC

How are you enabling RDP? Locally and manually on the machine or through group policy via your domain server?

0

· · ·

Ghost Chili

OP

Best Answer

Briser_fae_the_broch

This person is a verified professional.

Verify your account to enable IT peers to see that you are a professional.

Apr 23, 2019 at 08:55 UTC

Am assuming the VM is W10 Pro?

Just out of curiosity have you tried RDP to the IP address?

Incidentally, maybe not relevant but on a few new build W10 PC's I have built I cannot turn on RDP from the Settings, System, Remote Desktop so I then do it the old fashioned way, in Explorer right-click on This PC, Properties and Remote.

0

· · ·

Poblano

OP

Michael Ballinger

This person is a verified professional.

Verify your account to enable IT peers to see that you are a professional.

Apr 23, 2019 at 15:19 UTC

OK that was weird. I was able to enable Remote Desktop by right clicking on This PC. Im still not sure why the domain admin doesn't have certain permissions. I wonder what changed. Thank you for your help. I felt like I tried everything before that.

1

· · ·

Ghost Chili

OP

Briser_fae_the_broch

This person is a verified professional.

Verify your account to enable IT peers to see that you are a professional.

Apr 23, 2019 at 16:05 UTC

Glad you got there!

0

This topic has been locked by an administrator and is no longer open for commenting.

To continue this discussion, please ask a new question.

How to Enable Remote Desktop in Windows 10? [Complete Guide]

If you wish to use the Remote Desktop Protocol on Windows 10, then you have landed at the right place. This article will deliver an in-depth analysis of how to enable remote desktop in Windows 10, and to enable RDP on your PC. The basic objective of the Remote Desktop is to permit remote access to that device using the RDP. In simple words, this feature is generally used when you are not present physically in front of the desktop but want to access it.

In Windows 10, you can configure the settings and then enable Remote Desktop on your system. Now, there are various ways through which you can accomplish this task. Take a look:

How to Enable Remote Desktop Windows 10 via CMD and PowerShell

Summary

Is Remote Desktop free? Is it secure? How do you know if Remote Desktop is enabled? In this post, MiniTool answers all the above questions. Furthermore, MiniTool also shows you how to enable this feature via Command Prompt and Windows PowerShell.

Quick Navigation :

How to enable Remote Administration feature in Windows

Description

This document provides you with steps required to enable the Remote Administration feature using Desktop Central. You use this feature to control computers, within your network, remotely. For example, if you want to change the wallpaper on all the computers in your network, you will be able to do it remotely, from a central location after you enable this feature.

Note: You must have admin rights to enable and use the Remote Administration feature.

Video liên quan

Bài Viết Liên Quan

Toplist mới

Bài mới nhất

Chủ Đề