To check how many users are connected (and get the session Id of the session you want to kick:
qwinsta /server:[server name/ip]
This will show a list containing sessionname, username, id, etc.
It's the Id we need for the next step :
rwinsta /server:[server name/ip] [SessionId]
If you have the necessary rights the session will then be disconnected.