To install a new KMS host key for Windows 8 activation or for Windows Server 2012 activation, run the following command:
cscript %windir%\system32\slmgr.vbs /ipk <KMS host key>
Note In this command, "KMS host key" is a placeholder for the new KMS host key for Windows 8 activation or for Windows Server 2012 activation.
Important: Every KMS host key is associated with a group of Windows editions. Additionally, a KMS host key that is associated with Windows client operating systems cannot be installed on Windows server operating systems, and vice-versa. This is true for all Windows operating systems except for Windows Server 2003. If KMS host key is installed on a Windows operating system that is not associated with that host key, the following error message appears:
0xc004f015: The Software Licensing Service reported that the license is not installed.
For example, one may receive this error message in the following situations:
- If try to install a Windows 7 KMS host key (CSVLK) on a Windows Server 2008 R2 KMS host.
- If try to install a Windows 8 KMS host key (CSVLK) on a Windows Server 2008 R2 KMS host or a Windows Server 2012 KMS host.
To activate the new KMS host key on the host computer, run the following command:
cscript %windir%\system32\slmgr.vbs /ato
KMS Client Setup Keys