Overview
This topic describes how to enable multiple users to simultaneously log on to a Windows Elastic Compute Service (ECS) instance.
Background information
Take note of the following items:
- Before you perform high-risk operations such as modifying instance configurations or data, we recommend that you check the disaster recovery and fault tolerance capabilities of the instances to ensure data security.
- You can modify the configurations and data of instances including ECS and ApsaraDB RDS instances. We recommend that you create snapshots or enable RDS log backup before you modify instance configurations or data.
- If you have authorized or submitted sensitive information such as the logon account and password in the Alibaba Cloud Management Console, we recommend that you modify the information in a timely manner.
Install Remote Desktop Session Host and Remote Desktop Licensing
- Log on to a Windows ECS instance. For more information, see Overview.
- In this topic, Windows Server 2012 R2 Datacenter Edition 64-bit is used. In the lower-left corner of the Windows desktop, click the Server Manager icon. Then, click Add roles and features.
- In the Select installation type step of Add Role and Feature Wizard, select Role-based or feature-based installation and click Next. In the Select destination server step, select Select a server from the server pool and click Next. In the Select server roles step, select Remote Desktop Service and click Next.
- Click Next twice.
- In the Role Services step, select Remote Desktop Session Host and Remote Desktop Licensing. In the dialog box that appears, click Add Features. Then, click Next.
- Confirm the selected roles and click Install.
- After the roles are installed, restart the instance as prompted.
Enable multiple users to log on to a Windows instance
- In the Run dialog box, enter gpedit.msc and click OK to start Local Group Policy Editor.
- Choose Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections. Set Allow user to connect remotely by using Remote Desktop Services, Limit number of connections (based on actual requirements), and Restrict Remote Desktop Services users to a single Remote Desktop Services session.
- Double-click Allow user to connect remotely by using Remote Desktop Services and select Enabled. Click Apply and then click OK.
Note: You can view the policy configurations in the Help section.
- Double-click Limit number of connections and select Enabled. Click Apply and then click OK.
- Double-click Restrict Remote Desktop Services users to a single Remote Desktop Services session and select Enabled or Disabled. Take note of the differences between Enabled and Disabled. In this example, select Enabled. Click Apply and then click OK.
Add new users to the remote desktop users group
After multiple users are enabled to log on to an ECS instance, add new users to the remote desktop users group.
- Create user accounts:
- Log on to the Windows ECS instance.
- In the lower-left corner of the Windows desktop, click the Start icon, click Control Panel, and then click User Accounts.
- Click Manage another account to create user accounts based on actual requirements.
- Add new users to the remote desktop users group:
- In the Run dialog box, enter lusrmgr.msc and click OK to open Local Users and Groups. Click Groups and double-click Remote Desktop Users.
- Click Add.
- In the Select Users dialog box, click Advanced.
- Click Find Now. In the Search results section, select the user accounts that are created in the previous step. Then, click OK.
- Confirm the accounts to be added and click OK.
- In the Run dialog box, enter lusrmgr.msc and click OK to open Local Users and Groups. Click Groups and double-click Remote Desktop Users.
Remote Desktop Licensing expires
By default, Remote Desktop Licensing is valid for 120 days. After 120 days, the authorization expires and you may not be able to log on. You must re-authorize the remote desktop. For more information, see Apply for a license for authorizing multi-user sessions and activate a Windows ECS instance.
Application scope
- ECS