To Enable Remote Desktop Connection via Command Prompt
First check RDC is enabled or not
On the Server where you want RDC enabled, Open command Prompt
C:\Windows\System32>cscript scregedit.wsf /AR /v
OUTPUT:
1 indicates that Remote Desktop is not enabled
C:\Windows\System32> cscript scregedit.wsf /AR 0
To verify RDC is enabled or not, again execute the below command
C:\Windows\System32>cscript scregedit.wsf /AR /v
OUTPUT:
0 indicates RDC is now enabled.
To confirm you can connect to this server from a remote server/computer via RPC
1 indicates that Remote Desktop is not enabled
C:\Windows\System32> cscript scregedit.wsf /AR 0
To verify RDC is enabled or not, again execute the below command
C:\Windows\System32>cscript scregedit.wsf /AR /v
OUTPUT:
0 indicates RDC is now enabled.
To confirm you can connect to this server from a remote server/computer via RPC