Remote Desktop Connection Registry Key

Registry Editor→Remote connect

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server
fDenyTSConnection = 0

Port….
KEY_LOCAL_MACHINESystemCurrentControlSetControlTerminalServerWinStationsRDP-Tcp
PortNumber = 3389 (default)

cmd
shutdown -m \hostname -r”