Remote Desktop Protocol

You can enable (remotely) Remote Desktop (RDP) by adjusting the register key.

use wmiexec.py / smbexec.py or Evil-WinRM to preform the actions below.

Enable / disable Remote Desktop

Enable

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

Disable

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f