In this article, we have explained how to change the product key on a windows server through CMD.
Follow the steps:
- Click Windows key, type “cmd,” and click on the “Command Prompt” app that appears on the search results.
- 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. - To remove any existing product key, enter the following command-
slmgr.vbs /upk - To clear product key from the registry, run the following command-
slmgr.vbs /cpky - 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. - Finally, stimulate Windows by entering the command-
slmgr.vbs /ato Windows is activated now. - 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