I have two windows 2008 R2 Terminal servers and have given users access to both server to keep redundancy/ load sharing.
How to restrict users from logging on both servers at same time?
I have two windows 2008 R2 Terminal servers and have given users access to both server to keep redundancy/ load sharing.
How to restrict users from logging on both servers at same time?
Setup an NLB cluster for the servers.
Set up Session Broker
Enable the GPO setting "Restrict Terminal Services users to a single remote session" in the GPO that applies to the servers.
These three things working together will accomplish your goal.
From what you have described there appears to be nothing to stop all the users simultaneously logging onto either server. That would of course not provide load sharing. Consider allowing each user to log onto only one server, rather then letting the user choose one. To cover the possibility of either server going down you could also create three scripts, to be run as required.
If both servers are in domain, you should set up the Remote Desktop Conection Broker and make a Remote Desktop Server Farm
The Broker's work is to forward users to mostly free servers. It is not a 'weak link'. The connection process goes like this:
TERMINAL-FARM 172.16.16.1 TERMINAL-FARM 172.16.16.2 TERMINAL-FARM 172.16.16.3 etc
- The RDS server asks Broker if he need to redirect this user to other server. If the broker is down, it just accepts the connection and works like server is not farm memberBroker looks up if user already have session opened on any farm membet RDS server. If so, it tells RDS to redirect user to this server. Then Broker looks up for all RDS servers'
LoadIndicator
* and tells RDS server to redirect user or to accept the connection.If Broker told RDS server to move user to other server, the RDS server responses user to switch to connect to another IP-address (when redirecting, IP addresses are used, not DNS names)
The RDP client reconnects to the server that it was told to connect to. If client uses RDP encryption, then he is asked for password again, if TLS encryption, then user authenticates automatically.
LoadIndicator
is a numeric value for each server in farm. Ordinary is computed by formulaLoadIndicator = (ServerWeight * ( LoggedOnUsers + PendingRedirections))
. If server is inDrain mode
,LoadIndicator
has a very big value (65535 I think), so connections are never redirected to server inDrain mode