Change Product Key Windows 10 / Windows Server 2019 via cmd

wndows server 2019 1

Fix Windows 10 /2019 activation error 0x087E10BC6
  1. Click Start and type CMD in the Start Search menu
  2. Right Click and choose Run as administrator
  3. To remove any existing product key (in case you used a trial key), enter and run the command slmgr.vbs /upk .
  4. Clear the product key from registry by running slmgr.vbs /cpky
  5. To enter your new product key, use the command: slmgr.vbs /ipk xxxxx-xxxxx-xxxxx-xxxxx where the x’s are your actual product key.
  6. Lastly, activate Windows by entering the command slmgr.vbs /ato
  7. Windows is now activated.

to check windows activation status type:

slmgr /xpr and hit enter

In case of problems…

In some cases, the procedure may not be successful and it is necessary to convert the version of Windows from Evaluation to Standard using the product key in your possession.

The procedure is as follows and is always performed from the command line with administrator privileges (obviously without having to reinstall the operating system).

Check the available editions:

Open PowerShell or the Command Prompt as administrator and type the command:

dism.exe /online /Get-TargetEditions

Perform the conversion:

Enter the final license key purchased using the DISM command:

dism.exe /online /Set-Edition:ServerStandard /ProductKey:YOUR-PRODUCT-KEY-HERE /AcceptEula

Restart the server:

Once the operation is complete, reboot the machine for the changes to take effect.

Autore: Fabio Querzè