To find out who's logged in, run the following command:
qwinsta /server:<server name or IP address>
To disconnect the session run the following command:
rwinsta <ID> /server:<server name or IP address>
Using the output of the previous command, insert the <ID> of the user you wish to disconnect