I don't know much about RDP, so this question may not make sense but:
What is the correct way to detect, in Python, which user is currently logged into the server through RDP?
Would the answer to this question: Is there a portable way to get the current username in Python? work as well on a remoted log in?