The accepted answer doesn't work if there is no rdp session at all, and you still want automate it through AutoIt.
They say in this case you should not use WinActivate and use ControlSend in AutoIt scripts instead, and it would work smoothly. And yes, that works, checked it myself.