Command to enable Remote Desktop using CMD

Vikas Vijay Bhadvalkar 25 Reputation points
2023-06-28T20:38:18.7733333+00:00

Command to enable Remote Desktop using CMD batch

Windows for business Windows Server User experience Other
{count} votes

Accepted answer
  1. Anonymous
    2023-06-28T20:52:38.54+00:00

    You'll need to start Remote Desktop Services (TermService) service, then add the firewall rule to allow inbound connections on port 3389, and finally add the users to the Remote Desktop Users

    --please don't forget to upvote and Accept as answer if the reply is helpful--


1 additional answer

Sort by: Most helpful
  1. Matthew Bechtol 491 Reputation points
    2023-06-28T20:48:51.9266667+00:00
    :: Enable remote access.
    
    reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
    
    :: allow through firewall.
    
    netsh advfirewall firewall set rule group="remote desktop" new enable=Yes
    
    5 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.