camscape - for excellent IT solutions - IT knowledge base

windows :: disconnect rdp session

David G.
TitleDisconnect RDP session
TagsDisconnect RDP session
Desc.Disconnect RDP session
CodeKBWIN0015 v1.0
Date 1 ianuarie 1970

Sometimes you need to disconnect a user from a Windows Server. That user can be logged in locally or using RDC (Remote Desktop Connection).


Sometimes this is needed because that user connected before using RDP, closes the connection but without proper Logoff . Next time he tries to logon a blank screen apears on RDP.


Connect as Administrator. Run in terminal:


query session


It will give you a list of connected users. Those with "Disc" as status are those who disconnected their RDP session without properly logoff.




logoff <session_id>


This will disconnect and properly logoff user.