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