How to change the product key for Windows 8 and Server 2012

To change the product key for Windows 8 and Server 2012, launch an elevated command prompt and use the following command:

slmgr.vbs /ipk license key

slmgr_vbs