Mariusz, Gorzoch tech Blog

How to release RDP session on remote machine from Win8 command line

leave a comment »


Today I found a need to first find out who is log on remote machine and then kill it so I can access that machine. To my surprise “Terminal services manager” is not installed anymore on Win8 box, so I had to find some other option. Lucky thanks to that blog :


I found that this can be easily done with help of two command line calls :

1. Get list of currently logged users : QUser /Server:{Your server name or IP}

2013-07-10 09-56-10


2. Logoff user based on session ID : logoff {Session name or ID} /Server:{Your server name or IP}

In case of that one you need to wait an minute till you get response as the call goes to the server and remote machine show log off popup to the user where he have few seconds to respond and cancer your request.



Written by Mariusz Gorzoch

10 July 2013 at 10:00

Posted in Bez kategorii

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

%d bloggers like this: