RDP – Enable Remote Desktop Using Command Prompt

You need to enable Remote Desktop using the command or having problems doing it from the GUI e.g. group policies


  • Open command prompt using an administrative session
  • Type the following two commands

reg add "hklm\system\currentControlSet\Control\Terminal Server" /v "AllowTSConnections" /t REG_DWORD /d 0x1 /f

reg add "hklm\system\currentControlSet\Control\Terminal Server" /v "fDenyTSConnections" /t REG_DWORD /d 0x0 /f

  • We now need to start terminal services

sc config TermService start= auto

  • Now to make terminal service start every time the computer started

net start Termservice

  • we need to open port that will be used by remote desktop on firewall



add portopening TCP 3389 "Remote Desktop"

  • Test terminal service/ RDP connection


Tested Platforms
Windows 2008 R2
Windows 8


How To Enable Remote Desktop Using Command Prompt?

Hits: 104

Leave a Reply