Reset Remote Sessions – RDP

Errr I hate when I or someone else left thier remote RDP sessions open and then we run out of sessions. Then you see something like this! Grrrrr…

image

To get around this issue I usualy login to server using console mode:

mstsc /v:150.179.241.90 /f –console

But trust me sometimes this even doesn’t work! why don’t know…

There are some other ways to get around this. Best way to handle this is using your command prompt.

QWinsta

QWinsta is little different and better. It has more features and options. It comes with all flavors of Windows. 

C:\>qwinsta /server:150.179.241.90

SESSIONNAME       USERNAME                 ID  STATE   TYPE        DEVICE
ica-tcp#961           yves                          10   Active  wdica
ica-tcp#962           marc                          1    Active   wdica
ica-tcp#984           rden                          5     Active  wdica

 

RWinsta

RWinsta has same parameters and does same thing as log off command. It simply means Reset WINdows STAtion.

C:\>RWinsta /Server:150.179.241.90 1

Or you could use logoff

Logoff

Logoff command kicks off (logging off) the specified remote session.

C:\>logoff /server:150.179.241.90 1 /v

ZitizonX