Step By Step Guide To Setup KMS Server

Written by Allen White on. Posted in Microsoft, SBS2008/2011, Server 2003, Server 2008, Windows 7, Windows Vista, Windows XP

IT Problem

Rather than go out to Microsoft to license your PCs you can set-up an internal KMS server that will license your machines for you. This is particularly useful if you have a virtual environment where machines are created on the fly as and when they are required. Or maybe you just want one so you can control your license allocation internally. This is a step by step guide on how to set-up a KMS server on server 2008 or Server 2012 so that you can license Windows XP, Windows 7, Windows 8 and also server OS`s.

If you are not running server 2008 R2 then you MUST install this patch from Microsoft first

Setting up a Windows 2008 or 2012 KMS Server

Now, a bit of background. I had to set this up as a client was using VMware VDI. This is for dumb terminals with no OS; when a user turns on  they connect to VMware VDI and it quickly clones a PC  from a base image and delivers it to the user. The issue with this is PCs are created on a regular basis and when they are not used they are removed. This could be a licensing nightmare…step up KMS!

So first drop to a command line on the server what you would like to be your KMS server and enter the below, where you see my license key you need to enter YOUR KMS key for the SERVER OS that is installed on your server, so mine is server 2008R2 so I enter my server 2008R2 KMS.

cscript C:\windows\system32\slmgr.vbs /ipk BMR8R-38EVD-2HJPK-PCH12-Y938C

This is where sometimes there is confusion, yes you want to license you Windows 7 machines but your server 2008/2012 KMS license has your company`s Windows 7 license information in it, the same with Windows XP and server etc. So, this is the only key you need.

Ok next we need to activate your server so run the below.

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

Your server will activate so it can license machines when they request activation. What actually happens is your KMS server puts some records in DNS that answer your PCs` requests for activation, to test this you can enter the command below.

nslookup -type=srv _vlmcs._tcp

You will see a return of

Believe it or not that is it, there are a few other handy commands though if required. If you  have an issue where a PC will not license to your KMS server then enter the command below.

slmgr -skms kms-ip-address

Finally, if you want to get the stats out of your KMS server to see how many licenses are being issued or many other stats then use the command below.

slmgr.vbs /dlv
Allen White
Allen is a Consultant for ITPS in the North East of England and holds the following accreditations. MCSA, MCSE, MCTS, MCITP, CCA, CCSP, VCP 4,5 and HP ASE, AIS - Network Infrastructure.

ITPS provides strategic IT consultancy, implementation, data centre provision and unified communications, as well as support services and workspace and disaster recovery. If you require a consultation then please contact me via the contacts section or direct on 07931222991, add me on linkedin.

Related Problems

Step By Step Guide on Upgrading to Internet Explorer 9
If you run a earlier version of internet explorer then you may be considering upgrading to ie9, follow this step by step guide for beginners on upgrading to internet explorer ...
Server 2008 Can See PCs But PCs Cannot See Servers Or Authenticate
A solutionto to a problem where pcs` cannot log into a domain after updates to server 2008r2. This is a problem with the windows firewall.PC`s cannot see server 2008 ...
Notify Users of Server Shutdown
If you need to shut down you server and you need to notify your users of this you can send a message to there screen notifying them of a server ...
Find Out What User Is Logged Into A PC
A command that will help you find out what user is logged onto a pc/workstation on a network. How to find out who is logged into a pc.
Step By Step Guide On Installing Trend Scanmail On Exchange 2010
Step By Step Guide on Installing and Configuring Trend Micro Scanmail On Microsoft Exchange 2010.This is a simple process.
SBS2008 Server, Active Directory Fails, No users can connect – Trend WBS
Every few weeks you find that Server 2008 hangs, and you cannot connect to active directory applcations like ADU+C,additionally you have trend micro installed.
IT Tutorials
When your clients logon to your domain you can give them a nice greeting or a company policy notice. Read this guide on how to do so.
How to Rename a Server 2008 Domain
Renaming your server 2008 is quite a big task,, follow this step by step guide on renaming your server 2008 domain.
Step By Step Guide on Upgrading to Internet
Server 2008 Can See PCs But PCs Cannot
Notify Users of Server Shutdown
Find Out What User Is Logged Into A
Step By Step Guide On Installing Trend Scanmail
SBS2008 Server, Active Directory Fails, No users can
Add a Logon Message to Server 2003,2008 and
How to Rename a Server 2008 Domain

Tags: ,

What Do You Think?

Search Solutions


(c) Please be aware, all information is provided freely, any information used is done so at your risk and Techieshelp will not be held responsible for any issue that may occur.