Windows - Maximum Number Of Connections Reached

If windows is displaying that the maximum number of connections has been reached when trying to login to the server remotely the following command can be used to connect to the server to disconnect the users that are currently logged in:

mstsc.exe /v:ServerName /console [/f] [/w:Width/h:Height]