If you cannot log-in via remote desktop to your Windows server because of an unresponsive desktop (for example, you get a black screen) or because there are too many active sessions, you can log-of a session remotely.
Kill a session
Launch a Command Prompt window and Authenticate to the remote computer by using the following “net use” command:
c:> net use /user:Administrator \
c:> net use /user:Administrator \10.10.10.10C$
Now you’re connected to the server.
Run the following command to list the active sessions on the server.
c:> qwinsta /server:
c:> qwinsta /server:10.10.10.10
A list of active and connecting Remote Desktop or Terminal Services sessions will be displayed.
Identify the connection you want to ‘kill’ and its ID.
To reset and disconnect the Remote Desktop connections or sessions, run the following command:
c:> rwinsta 1 /server:10.10.10.10
Another option is to run following command:
c:> reset session
c:> reset session 1 /server:10.10.10.10
If you cannot log on to the server because all sessions are in use, you can try to log with RDP to the console session.
Start -> Run -> mstsc /console
If you still get an error, you can try to overrule a session.
Start -> Run -> mstsc /admin