Manually Activate Windows with KMS

From Bonus Bits
Jump to: navigation, search

Purpose

This article gives the commands to activate a Windows system to a KMS licensing server. This applies to Vista or later.


Prerequisite

  • Windows must have been installed from volume licensing (VL) media.
  • Open Command Prompt as Administrator


Replace Product Key with KMS Client Key

Determine if a KMS Client key is installed

cscript c:\windows\system32\slmgr.vbs -dlv

Example

Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Software licensing service version: 6.1.7601.17514

Name: Windows Server(R), ServerStandard edition
Description: Windows Operating System - Windows Server(R), VOLUME_MAK_B channel
Activation ID: 6a4bd364-4b60-4856-a727-efb59d94348e
Application ID: 55c92734-d682-4d71-983e-d6ec3f16059f
Extended PID: 55041-00168-262-069070-03-1033-7600.0000-1522010
Installation ID: 002794909876938126922851206862518125357893640022101072
Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88342
Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88343
Use License URL: http://go.microsoft.com/fwlink/?LinkID=88345
Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88344
Partial Product Key: 9MC2D
License Status: Licensed
Remaining Windows rearm count: 4
Trusted time: 3/29/2012 7:47:45 PM

Icon-Tip-Square-Green.png VOLUME_MAK_B channel in the description. That stands for Multiple Activation Key and is not a KMS client key.

Obtain a KMS Client Key

The KMS client keys are universal to all customers and a list of them can be found on the Microsoft Technet web site HERE.

Uninstall Current Key (Optional)

The Install command replaces the existing key.

cscript c:\windows\system32\slmgr.vbs -upk

Install KMS Client Key

cscript c:\windows\system32\slmgr.vbs -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

Example

cscript c:\windows\system32\slmgr.vbs -ipk YC6KT-GKW9T-YTKYR-T4X34-R7VHC
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Installed product key YC6KT-GKW9T-YTKYR-T4X34-R7VHC successfully.</syntaxhighlight>

<syntaxhighlight lang="dos" enclose="div">cscript c:\windows\system32\slmgr.vbs -dlv
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Software licensing service version: 6.1.7601.17514

Name: Windows Server(R), ServerStandard edition
Description: Windows Operating System - Windows Server(R), VOLUME_KMSCLIENT channel
Activation ID: 68531fb9-5511-4989-97be-d11a0f55633f
Application ID: 55c92734-d682-4d71-983e-d6ec3f16059f
Extended PID: 00477-00168-001-000042-03-1033-7601.0000-0892012
Installation ID: 010590852466523254779783775881753370600962284862625515
Partial Product Key: R7VHC
License Status: Initial grace period
Time remaining: 43200 minute(s) (30 day(s))
Remaining Windows rearm count: 4
Trusted time: 3/29/2012 7:49:21 PM
Please use slmgr.vbs /ato to activate and update KMS client information in order to update values.

Gnome-sticky-notes-applet Take note of the VOLUME_KMSCLIENT channel in the description.

Determine if KMS Host Has Service Record in DNS

(HowTo) Determine an Active KMS Host Server on a Domain Through a DNS Query


Set KMS Server Manually (Skip if in DNS)

If your network does not support DDNS, you need to manually assign a KMS host to your KMS clients. Manually assigning a KMS host disables auto-discovery of KMS on a KMS client.

cscript c:\windows\system32\slmgr.vbs -skms <kms fqdn>

Example

cscript c:\windows\system32\slmgr.vbs -skms kmsserver01.domain.com
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Key Management Service machine name set to kmsserver01.domain.com successfully.


Activate

cscript c:\windows\system32\slmgr.vbs -ato
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Activating Windows Server(R), ServerStandard edition (68531fb9-5521-4989-98be-d11a0f55633f) ..

Product activated successfully.

Static Registered KMS Server Example

cscript c:\windows\system32\slmgr.vbs -dlv
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Software licensing service version: 6.1.7601.17514

Name: Windows Server(R), ServerStandard edition
Description: Windows Operating System - Windows Server(R), VOLUME_KMSCLIENT channel
Activation ID: 68531fb9-5521-4989-98be-d11a0f55633f
Application ID: 55c92734-d682-4d71-983e-d6ec3f16059f
Extended PID: 00477-00168-001-000042-03-1033-7601.0000-0892012
Installation ID: 010590852466523294779783775881755370600962984862625515
Partial Product Key: R7VHC
License Status: Licensed
Volume activation expiration: 259200 minute(s) (180 day(s))
Remaining Windows rearm count: 1
Trusted time: 3/29/2012 8:05:47 PM

Key Management Service client information
    Client Machine ID (CMID): 6c18974a-732e-407e-9c57-d11a14d20066
    Registered KMS machine name: kmsserver01.domain.com:1688
    KMS machine extended PID: 55041-00168-313-058648-03-1033-7600.0000-1342010
    Activation interval: 120 minutes
    Renewal interval: 10080 minutes
    KMS host caching is enabled

Gnome-sticky-notes-applet Take note of the key name Registered KMS machine name.


Dynamic DNS Registered KMS Server Example

cscript c:\windows\system32\slmgr.vbs -dlv
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Software licensing service version: 6.1.7601.17514

Name: Windows Server(R), ServerStandard edition
Description: Windows Operating System - Windows Server(R), VOLUME_KMSCLIENT channel
Activation ID: 68531fb9-5521-4989-98be-d11a0f55633f
Application ID: 55c92734-d682-4d71-983e-d6ec3f16059f
Extended PID: 00477-00168-001-000042-03-1033-7601.0000-0892012
Installation ID: 010590852466523294779783775881755370600962984862625515
Partial Product Key: R7VHC
License Status: Licensed
Volume activation expiration: 259200 minute(s) (180 day(s))
Remaining Windows rearm count: 1
Trusted time: 3/29/2012 8:05:47 PM

Key Management Service client information
    Client Machine ID (CMID): 6c18974a-732e-407e-9c57-d11a14d20066
    KMS machine name from DNS:  kmsserver01.domain.com:1688
    KMS machine extended PID: 55041-00168-313-058648-03-1033-7600.0000-1342010
    Activation interval: 120 minutes
    Renewal interval: 10080 minutes
    KMS host caching is enabled

Gnome-sticky-notes-applet Take note of the KMS machine name from DNS.


Related Articles


Sources