Use DISM to change the product key

Hi it’s me Al,

This is a quick post how to use DISM Online to change the product key of a Windows Server 2012 R2. Sometimes you’re not able to change the key using the GUI. This is how to do this using DISM:

1. Run powershell or a cmd as Administrator

Use DISM /online /Get-TargetEditions to list available editions for upgrade. To upgrade from evaluation to standard use DISM /online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula

2. Use the command DISM /online /Set-Edition:ServerDatacenter /ProductKey:XXXX-XXXXX-XXXXX-XXXXX-XXXXX/AcceptEula

1

3. Reboot the Server

Cheers.
Al

2 thoughts on “Use DISM to change the product key”

  1. I don’t want to upgrade. I simply want to use the DISM command to replace the current ProductKey on the existing system.

    Like

    1. Hi, you could use slmgr.vbs (run cmd or PowerShell as admin):

      – Display the key: slmgr.vbs /dli
      – Change the key: slmgr.vbs /ipk #####-#####-#####-#####-#####
      – Uninstall the Product Key: slmgr.vbs /upk

      Cheers,
      Al

      Like

Leave a comment