Windows Server

⌘K
  1. Home
  2. /
  3. Docs
  4. /
  5. Windows Server
  6. /
  7. Installation & assets...
  8. /
  9. Where do I change the produc...

Where do I enter the product code?

Where do I enter the product code?

Change the product key for Windows Server using a command prompt with administrator privileges. This method works in Windows Server 2019, 2022, and 2025, including Server Core.

Step 1: Open Command Prompt as an administrator

  1. Open Start and type cmd.
  2. Right-click on Command Prompt.
  3. Select " Run as administrator."

Step 2: Enter the brand new product code

Replace the sample code with your own valid product code:

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

Wait for the confirmation. If the brand new code is accepted, it will replace the previously installed code. You do not need to remove the old code first.

Microsoft then recommends restarting the server or the Software Protection service. Schedule this at a convenient time.

Step 3: Activate with the brand new code

Then, run the following command in a command prompt with administrator privileges:

slmgr.vbs /ato

For a Retail or MAK code, Windows attempts to activate it online. For a KMS client code, Windows uses your organization’s activation environment.

Are you using the Evaluation edition or another edition?

Changing a code is not the same as converting an edition. An Evaluation installation must first be converted to a supported full edition. Similarly, upgrading from Standard to Datacenter requires an appropriate conversion procedure.

If in doubt, check your edition first:

DISM /online /Get-CurrentEdition

Need help changing your product code?

Email your order number, the installed Windows Server version and edition, and a screenshot of any error message to info@cd-keys.uk, or use the contact page. Hide your full product code and do not share any passwords.