Wednesday, August 4, 2010

Windows 2008 KMS Model

Here's the procedure I have followed to put in place a KMS activation model for our infrastructure.

Start by preparing a server for key registration. Then, on the new KMS server, type this command at the command prompt:

cscript C:\windows\system32\slmgr.vbs /ipk

Restart the licensing services via the following command:

net stop slsvc && net start slsvc

SLSVC is the Microsoft Software Licensing Service.

It is very important to check now your DNS to make sure the KMS is listed there.

To do so, you can use the following command:

nslookup -type=srv _vlmcs._tcp

You should get a answer like this:

_vlmcs._tcp.yourdomainname SRV service location:
priority = 0
weight = 0
port = 1688
svr hostname = kmsserver.yourdomainname
kmsserver.yourdomainname internet address = x.x.x.x

Or you can acces your DNS management console, click on your DNS domain, expand "Forward Lookup Zones", then "_tcp" and make sure you can find a service record named _VLMCS on port 1688 redirecting you to the KMS server.

Then, to check KMS Server status, RDP into it and run:

cscript %windir%/system32/slmgr.vbs /dlv

At this time new Windows 2008 clients should automatically get a license a few days after installation. Or you can force them to ask for a license at any moment with:

cscript %windir%/system32/slmgr.vbs /ato

This command will force clients to query the DNS server for the record of the KMS Server.

Last, to troubleshoot any client connection issue to KSM Host, the two following commands are very useful:

cscript %windir%/system32/slmgr.vbs /ckms 
cscript %windir%/system32/slmgr.vbs /smks kmsserver.yourdomainname

Remember to make sure that communication on port 1688 is open on any firewall between your clients and your company KMS server.

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...