[FIX][RDP]Terminal Server has exceeded max number of connections

Today during my Penetration Testing, I was trying to establish a Remote Desktop Connection with a server and I came across a new error. I use Kali Linux so just did rdesktop Server_Ip and got the following error after logging in with valid username/password

“The Terminal Server has exceeded maximum number of allowed connections”
When a user establishes a Remote Desktop connection to the server this connection will remain active until the user selects “Log Off” from the Start Menu. As such, if a user simply closes the remote desktop window when they’re finished with the server, that username will remain logged on.

The software running on the server to facilitate the Remote Desktop connection will allow for up to two simultaneous administrative sessions.

If a third attempt is made to login to the server, the error discussed here will be shown to the user, and they will be unable to complete the login process.

HOW TO FIX TERMINAL SERVER HAS EXCEEDED MAX NUMBER OF ALLOWED CONNECTIONS ERROR
To get around this error and log into the server, you can log into a special session call the Console Session in order to Log Out the other connections.

WINDOWS
To do this, simply type the following in a Start -> Run or Command Prompt.
mstsc /v:00.00.00.00 /admin or mstsc /v:00.00.00.00 /console
Replace 00.00.00.00 with your server’s IP Address

Linux
you can install rdesktop if its not installed before as it comes pre-installed with Kali.
Open Terminal and type >
rdesktop -0 Server_IP