How to change the product key on a windows server through CMD

June 15, 2023 / Command Line

In this article, we have explained how to change the product key on a windows server through CMD.

Follow the steps:

  1. Click Windows key, type “cmd,” and click on the “Command Prompt” app that appears on the search results.
  2. Right-click on the “Command Prompt” app and select “Run as administrator.”
    Note- This step is necessary as changing the product key requires administrative privileges.
  3. To remove any existing product key, enter the following command-
    slmgr.vbs /upk
  4. To clear product key from the registry, run the following command-
    slmgr.vbs /cpky
  5. Now, to enter a new product key, execute the following command-
    slmgr.vbs /ipk xxxxx-xxxxx-xxxxx-xxxxx Note-x’s are the real product key.
  6. Finally, stimulate Windows by entering the command-
    slmgr.vbs /ato   Windows is activated now.
  7. To check windows activation status, enter the following command-
    slmgr /xpr and hit enter

This was the easiest way of changing the product key on a windows server through CMD.

Also Read : How to Flush the DNS Cache on Windows 11 using run command

Spread the love