Disconnect RDP sessions remotely

Sometimes you may not be able to login to a remote computer through RDP and you may want to disconnect active or disconnect RDP sessions.

Login to your client computer as a domain Admin user. Open cmd prompt with admin privileges.

qwinsta /server:SERVERIP

The Ip address or domain name of the Remote server should be entered in place of SERVERIP


qwinsta /server:

You will get a list of the Remote Sessions in the command window.

To remove disconnected sessions or logoff a user, use the following syntax:

rwinsta /server:SERVERIP SESSIONID

For example in order to terminate the session of the Administrator user the following command should be given.

rwinsta /server: 2

For more info:


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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s