Problem:
You are unable to activate Windows Server 2019 using the GUI and receive an Unable to Activate Windows error.
The error appears as below:
Solution:
Open a CMD window as an administrator and run the below command:
cscript c:\windows\system32\slmgr.vbs /ipk <product_key>