EC2 Windows Server License Activation
Recently, I moved an EC2 instance from one AWS account to another AWS account using a shared AMI. Everything booted up and seemed to work fine but the license. Windows Server just refused to activate on the new instance.
It turns out there are a few specific steps I needed to run to point the new instance to the correct AWS KMS servers for activation.
Open PowerShell as an Administrator and execute the following:
Import-Module "C:\ProgramData\Amazon\EC2-Windows\Launch\Module\Ec2Launch.psd1"
Add-Routes
Set-ActivationSettings
slmgr /ato
That’s it!
Related Articles
Active Directory - Maximum Number of Computer Accounts Allowed in This Domain
Active Directory throw the following error: Exceeded the Maximum Number of Computer Accounts Allowed to Create in this Domain
Register OLE Controls
How to register OLE Controls such as DLL or ActiveX
Libman in Azure DevOps Pipelines
How to use Libman in Azure DevOps Pipelines