Windows Server

⌘K
  1. Home
  2. /
  3. Docs
  4. /
  5. Windows Server
  6. /
  7. Troubleshooting
  8. /
  9. My Windows Server products...

My Windows Server product key isn’t working—what should I do?

My Windows Server product key isn’t working—what should I do?

First, check the installed server version, edition, and the full error message. A rejected code may indicate an incompatible installation, an evaluation version, an activation limit, or a connection issue.

Step 1: Compare your installation with your order

Check whether you’re using Windows Server 2019, 2022, or 2025, and whether the edition matches your purchase—for example, Standard or Datacenter.

Open Command Prompt as an administrator and run the following command:

DISM /online /Get-CurrentEdition

A product code for a different version or edition may not automatically work with your installation. Also, check whether you received a server product code or a separate access key, such as a CAL.

Step 2: Check for "Evaluation"

Does the edition name include “Eval”? If so, an evaluation version is installed. This must first be converted to a full edition using a supported procedure.

View the available editions for:

DISM /online /Get-TargetEditions

Follow Microsoft’s instructions for edition conversion. Do not perform a conversion on a production server without proper preparation. Make a backup beforehand and check the restrictions for your server roles.

Step 3: Verify the code you entered

Copy the full 25-character code from your order email, without any extra spaces or accompanying text. For a full installation, use:

slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

Replace the sample code with your own code. Is it accepted? If so, follow the activation instructions included with your purchase. Use the command below to start an activation attempt:

slmgr.vbs /ato

Step 4: Write down the error code

  • 0xC004F050: Windows rejects the code as invalid. Please check the version, edition, and installation, among other things.
  • 0xC004C020: The activation limit for a MAK code has been exceeded. Please have the seller or key administrator check this.
  • 0xC004F074: KMS activation failed. Check the organizational environment and the availability of the KMS service.

Do I need to reinstall Windows Server?

Do not do this as your first step. Reinstalling the software does not increase the activation limit and will not validate an invalid code. Have the error message assessed first.

Need help with your product code?

Email your order number, full Windows Server version and edition, and a screenshot of the error message with the error code to info@cd-keys.uk, or use the contact page. Please specify whether this is a first-time installation, a reinstallation, or a hardware change. Hide your full product code and do not share any passwords.