Welcome to the Microsoft Q&A Platform!
Thank you for asking your question. I would like to share with you some information that may help you migrate your existing Remote Desktop Services (RDS) User CALs and can troubleshoot the error you are encountering.
The Possible Causes
Agreement Number Issues
The agreement number is critical for CAL installation. If the number is incorrect, expired, or not recognized by Microsoft, the license cannot be applied. Many customers are unsure of their agreement number or use an outdated one. You must use the exact 7–8 digit agreement number from your Microsoft Open License purchase. You can check through:
- Agreement number
- License version (2019 RDS User CAL)
- Licensing program = Open (not Open Value)
- License Server Activation
Ensure the Remote Desktop Licensing Service is started and the license server is activated with Microsoft Clearinghouse before installing CALs. Make sure the destination license server is activated:
- Open Remote Desktop Licensing Manager.
- Right-click the destination server → Manage Licenses.
- Select Migrate RDS CALs from another license server to this license server.
- Product Version Compatibility
When installing RDS CALs, select the correct product version (Win2019 CALs can be used for Win2016 session hosts, but the license server must be properly configured)
- Migration Steps
If migrating licenses, use "Manage Licenses" and provide the source license server name/IP, agreement number, product version, license type, and quantity. If this fails, a license server database rebuild may be needed
Recommended Steps
License Server Database Rebuild
If the error persists, rebuild the license server database:
- Deactivate license server
- Uninstall RD Licensing → Reboot
- Rename folder:
Rename-Item C:\Windows\System32\LServer LServer.old
- Reinstall RD Licensing
- Activate the server
- Reapply CALs using browser or telephone method
Windows Server 2025 / 2016 Migration Steps
Follow these steps when moving CALs to a new server (including Azure VM):
- Activate the destination license server.
- Open RD Licensing Manager on that server.
- Right-click the server → Manage Licenses.
- Select Migrate RDS CALs…
- Choose the migration reason (old server retired or unavailable).
- If the old server is not available, select:
Windows version and License Server ID
- Choose the connection method
- Automatic (recommended): Communicates directly with Microsoft Clearinghouse over TCP port 443
- Web browser: Use the URL provided in the Licensing Wizard from any device that has internet access.
- Telephone: Call the number shown in the wizard and provide the license details to the Clearinghouse agent.
- Enter the license information (agreement number or license key).
- Complete the wizard and verify:
- CALs appear on the new server
- CALs are removed from the old server
Tip: Keep a copy of the License Key Pack ID for future migrations.
Reference:
Migrate your Remote Desktop Services Client Access Licenses (RDS CALs) | Microsoft Learn
Track your Remote Desktop Services client access licenses (RDS CALs) | Microsoft Learn
Note: This answer has been translated using a translation tool. Please note that there may be grammatical or semantic errors. Thank you for your understanding. If there is any unclear part of the answer, please leave it in the comments and we will get back to you as soon as possible.