How to kill remotely RDP session

Hi Guys,
You probably have seen it when you try to RDP to the server and you stuck on the black screen. I found out that this is the easiest fix for this issue.

  • Open CMD as the administrator who has access to the server which you want to RDP, or use a different server.
  • Type in qwinsta /server:<YourServerName>
qwinsta /server:<YourServerName> 
  • Select the session you would like to kill and type in rwinsta /server:<YourServerName> <SessionId>
rwinsta /server:<YourServerName> <SessionId> 

I hope that you enjoy this small trick.
Good luck.