You can turn on Terminal Services and Remote Desktop on Windows using a single command line:

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