How to remotely kill a Remote Desktop Session

 Check all Current RDP Sessions

C:\>qwinsta /server:SERVERNAME

 SESSIONNAME       USERNAME                 ID  STATE   TYPE        DEVICE
 console                                     0  Conn    wdcon
 rdp-tcp                                 65536  Listen  rdpwd
 rdp-tcp#1         orace                     1  Active  rdpwd

Kill a Remote Desktop Session

C:\>rwinsta /server:SERVERNAME 1 

Here “1” is the ID from previous checking of RDP sessions.

The killed connection will get the following message:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.