In all versions of Windows Server (from Windows Server 2000 to the latest Windows Server 2019), multiple remote desktop connections are allowed. However, the number of simultaneous RDP sessions is limited with two. This means that only two administrators can simultaneously connect to the server via RDP under different accounts (in Windows Server 2003, another, the third one console rdp session was available, for which you had to use the mstsc /console or mstsc /admin command). To use a remote connection, an account must be a member of the local “Administrators” or “Remote Desktop Users” group. However, if a general administrative account is used for administration, under which several admins in a team perform technical tasks (on-duty administrators, domain administrator account, etc.), then when you connect the second RDP session user under the same account, the session of the first one ends with the message:
Remote Desktop Connection
Your Remote Desktop Services session has ended
Another user connected to the remote computer, so you connection was lost. Try connecting again, or contact your network administrator or technical support group.
To understand which user kicked out your remote session, open the Event Viewer console and go to the Windows Logs > Security section. Filter events by the Event ID 4624. You will find the events of the latest RDP logins on this computer with the user name and remote computer name (or an IP address).
Procedure On the Windows®Server 2008 R2 computer, click Start Administrative Tools Server Manager. The Server Manager dialog box appears. Click Roles, and then click Add Roles. In-depth and comprehensive, this official Microsoft RESOURCE KIT delivers the information you need to plan, deploy, and administer Remote Desktop Services in Windows Server 2008 R2. You get authoritative technical guidance from those who know the technology best-leading industry experts and members of the Microsoft Desktop Virtualization Team. Oct 07, 2014 On the RD Connection Broker server, use Server Manager to specify the Remote Desktop licensing mode and the license server. Windows Server 2008 R2 doesn’t have this problem because is a Remote Desktop Session Host Configuration console is included during the install of the RDS services: but Windows Server 2012’s Remote Desktop Session Host. Remote Desktop Services (RDS) is one of the roles that a Windows Server can have. You must install this role to set up an RDS host that runs Windows Server 2008 R2.
READ ALSORDP: An Internal Error Has OccurredYou can enable two simultaneous RDP sessions on a Windows Server using special group policy setting or by modifying the registry.
Method 1: fSingleSessionPerUser Registry Key
- Connect to your Windows Server via RDP and run the Registry Editor (regedit.exe);
- Go to the registry key HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server;
- Find the REG_DWORD parameter with the name fSingleSessionPerUser and change its value from 1 to (if this parameter is missing, you can create it manually).
Or you can change the value of the fSingleSessionPerUser parameter with just one command in the cmd with administrator privileges:
Method 2. Restrict Remote Desktop Services Users Policy
You can also change these settings using the domain (gpmc.msc) or local group policy (gpedit.msc) editor console.
- Launch the Local Group Policy Editor console: Win+R > gpedit.msc > Enter;
- Open the following GPO section: Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections;
- Find a policy named Restrict Remote Desktop Services users to a single Remote Desktop Services;
- Edit this policy and change its value to Disabled.
In addition, there is another policy in the same GPO section – “Limit number of connections” that allows you to specify the maximum number of RDP connections to this server, but this doesn’t mean that when you specify 99999 connections here, almost 100,000 administrators can connect to this server. Without installing the RDSH role, the number of simultaneous RDP administrative connections will also be limited with two.
READ ALSORDP error: This computer can’t connect to the remote computerAfter that, you can create a separate RDP session for each remote logon. If you want to use more than 2 simultaneous RDP connections, you will have to install the Remote Desktop Session role on the server and buy RDS licenses to connect users or devices.
AuthorRecent PostsCyril KardashevskyI enjoy technology and developing websites. Since 2012 I'm running a few of my own websites, and share useful content on gadgets, PC administration and website promotion.Latest posts by Cyril Kardashevsky (see all)Windows Server 2008 (WS08) Server Core can be used in lots of useful scenarios. However, because WS08 does not have a GUI, you need to use the command prompt to accomplish the administrative tasks. You may find it convenient to manage the Server Core from another computer.
By default Remote Desktop is not enabled on the Server Core. There are two steps you need to take to get Remote Desktop working: Enable Remote Desktop & open default RDP port, which is TCP port 3889.
STEP 1 – Enable Remote Desktop
You can look at your settings by using the following command:
cscript c:windowssystem32scregedit.wsf /AR /v
The scregedit.wsf script will either return a 1 or a 0. If you see a 1 then the Terminal Services (i.e. Remote Desktop) is disabled, a 0 means it is enabled.
To enable Terminal Services use the following command:
c:windowssystem32scregedit.wsf /AR 0
To disable Terminal Services use the following command:
c:windowssystem32scregedit.wsf /AR 1
NOTE: The /AR switch is used for Vista and WS08 computers. For Windows XP computers replace /AR with /CS.
Windows Server 2008 Remote Desktop Services
STEP 2 – Open RDP Port
To open Remote Desktop, you need to make sure that your firewall is not blocking the default Terminal Services/RDP port 3389. On a WS08 Server Core, run the following command to open TCP port 3389.
netsh advfirewall firewall set rule group=”remote desktop” new enable=Yes
You should expect the following response when you execute the above command.
C:Windowssystem32>netsh advfirewall firewall set rule group=”remote desktop” new enable=Yes
Updated 2 rule(s).
Ok.
You might want to check out Microsoft KB article 947709 for additional information on opening ports at the firewall or how to enable ICMP requests.
Windows Server 2008 Remote Desktop Timeout
Copyright ©2009 Zubair Alexander. All rights reserved.