# List and Logoff RDP Users Remotely

To get a list of the Remote Sessions in the command window (Get the session Id of user to kick out):

```
qwinsta /server:SERVERIP
```

To disconnect the remote session:

```
rwinsta /server:SERVERIP SESSIONID
```

From [http://superuser.com/questions/62498/kicking-logging-out-remote-windows-users](http://superuser.com/questions/62498/kicking-logging-out-remote-windows-users)