If you need free terminal sessions, as in the case of exhausting licenses Terminal Server on your server, you will need to enter an account in order to close the active sessions, so you can access it again without rebooting your server.
This will require only;
This command line used to close an active terminal session, which will serve to re-enter your server via Terminal Server.
Enter the menu " Start "on your PC
Click " Run "
Insert: /v:000.000.000.000 mstsc / admin
Run the command