I've been encountering an error when trying to activate RDS License Servers for both Windows Server 2022 and 2025. The error states: "The license server could not be activated. Check if the inputs provided are correct. Before you activate a license server, you must set values for FirstName, LastName, Company, and CountryRegion." I've already confirmed that these fields are properly filled out and have tried activating through both the RDS License Manager wizard and PowerShell commands.
Here's the PowerShell snippet I've been using:
```
Set-Item -Path RDS:LicenseServerConfigurationFirstName -Value Joe
Set-Item -Path RDS:LicenseServerConfigurationLastName -Value Doe
Set-Item -Path RDS:LicenseServerConfigurationCompany -Value "Contoso Corp"
Set-Item -Path RDS:LicenseServerConfigurationCountryRegion -Value $country
Set-Item -Path RDS:LicenseServerActivationStatus -Value 1 -ConnectionMethod AUTO -Reason 5
```
Everything was automated and working fine until I started getting these errors today. I wanted to see if anyone else is experiencing this issue, or if it's just us.
**Update:** While activating via a web browser is successful, we depend on the automated method for provisioning, so this has become quite the hurdle for us.
2 Answers
It sounds like there might be an issue with how the role was configured when added via the script. I would suggest trying to remove the license server role completely, reboot the system, and then re-add the role. Configuring it from scratch could potentially resolve the issue, so give that a shot!
Thanks for the suggestion! I really doubt that’s the case since this is happening across multiple environments and everything was functioning properly until now. The web activation works fine, so I was hoping someone could replicate the issue in their lab to see if it’s a broader problem with MS.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures