Monday, May 19, 2014

How to activate Windows 2012 through PowerShell


In some instances activating Windows 2012 fails with error stating that the product key is invalid or is for a different version of Windows.

Here is how to get aroudn that error and quickly activate through PowerShell. 


  1. Right click PowerShell and choose run as Administrator
  2. Run the following command: 
    DISM /online /set-Edition:serverDatacenter /ProductKey:IN856-VALID-524SE-RIALN-UMBER /AcceptEula
  3. Reboot