vlmcsd.7.dos.txt 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. VLMCSD(7) KMS Activation Manual VLMCSD(7)
  2. NAME
  3. vlmcsd - a guide to KMS activation using vlmcsd
  4. SYNOPSIS
  5. vlmcsd [ options ]
  6. DESCRIPTION
  7. This manual describes the concepts of Microsoft KMS activation using
  8. vlmcsd. For detailed usage of vlmcsd see vlmcsd(8).
  9. What is KMS?
  10. KMS is a way to activate Microsoft products that was designed for
  11. medium and large businesses. In a standard SOHO environment you enter a
  12. product key during installation and then activate your product over the
  13. Internet. This is done by sending a request to a server at micro‐
  14. soft.com which then either grants or refuses activation.
  15. By entering a special key called General Volume License Key (GVLK),
  16. a.k.a "KMS client key", the product no longer asks the Microsoft server
  17. for activation but a user-defined server (called the KMS server) which
  18. usually resides in a company's intranet. vlmcsd is an independent open
  19. source implementation of a KMS server that is available for everyone
  20. while Microsoft gives their KMS server only to corporations that signed
  21. a so called "Select contract". In addition vlmcsd never refuses activa‐
  22. tion while the Microsoft KMS server only activates the products the
  23. customer has paid for.
  24. Product activation using vlmcsd is performed in three easy steps:
  25. 1) Run vlmcsd (or any other KMS emulator) on a computer in your net‐
  26. work. This will be your KMS server. New users should simply run the
  27. program without any parameters. The defaults should fit the needs of
  28. most users.
  29. 2) Install your product and enter the GVLK when you are asked for a key
  30. 3) Configure your client (the machine where you installed your product)
  31. to use your KMS server.
  32. However, when it comes to the details, some things turn out to be more
  33. difficult than you might think.
  34. The most important thing to know is that KMS activation is not perma‐
  35. nent. The computer remains activated for 180 days (30 or 45 days with
  36. consumer-only products). KMS activation however is not an evaluation
  37. license. You can repeat the activation anytime and as often as you like
  38. to extend activation to another 180 days. This normally happens auto‐
  39. matically. For this to work, you have to ensure that a KMS server is
  40. always reachable for the clients on your network.
  41. Beginning with Windows 8.1 the KMS server must be a different computer
  42. than the client. You cannot use vlmcsd on the same computer where you
  43. want to activate a product. If you have only one computer, you can run
  44. vlmcsd in a virtual machine. vlmcsd is also designed to run on "always-
  45. on devices", for example a router. The router becomes your KMS server
  46. then.
  47. How to get a GVLK?
  48. That is relatively simple. The GVLKs are published on Microsoft's Tech‐
  49. net web site.
  50. Windows: http://technet.microsoft.com/en-us/library/jj612867.aspx
  51. Office 2010: http://technet.microsoft.com/en-
  52. us/library/ee624355(v=office.14).aspx#section2_3
  53. Office 2013: http://technet.microsoft.com/en-us/library/dn385360.aspx
  54. These lists only include products that Microsoft sells to corporations
  55. via volume license contracts. For Windows there are inofficial GVLKs
  56. that work with consumer-only versions of Windows. Here is a list:
  57. 789NJ-TQK6T-6XTH8-J39CJ-J8D3P - Windows 8.1 Professional with Media
  58. Center
  59. M9Q9P-WNJJT-6PXPY-DWX8H-6XWKK - Windows 8.1 Core
  60. 7B9N3-D94CG-YTVHR-QBPX3-RJP64 - Windows 8.1 Core N
  61. BB6NG-PQ82V-VRDPW-8XVD2-V8P66 - Windows 8.1 Core Single Language
  62. NCTT7-2RGK8-WMHRF-RY7YQ-JTXG3 - Windows 8.1 Core Country Specific
  63. GNBB8-YVD74-QJHX6-27H4K-8QHDG - Windows 8 Professional with Media Cen‐
  64. ter
  65. BN3D2-R7TKB-3YPBD-8DRP2-27GG4 - Windows 8 Core
  66. 8N2M2-HWPGY-7PGT9-HGDD8-GVGGY - Windows 8 Core N
  67. 2WN2H-YGCQR-KFX6K-CD6TF-84YXQ - Windows 8 Core Single Language
  68. 4K36P-JN4VD-GDC6V-KDT89-DYFKP - Windows 8 Core Country Specific
  69. The above keys require activation renewal every 45 days (Win 8.1) or 30
  70. days (Win 8). All GVLKs from the Microsoft Technet web site require
  71. renewal every 180 days.
  72. What are SLMGR and OSPP and how to use them?
  73. You will need these utilities later. So please continue reading this
  74. section.
  75. These are two Visual Basic script utilities that are used to control
  76. Microsoft's Software Protection system. To use them open a Windows Com‐
  77. mand Prompt. slmgr.vbs is for Windows. ospp.vbs is for Office 2010 and
  78. 2013. These utilities are installed with Windows and Office and you
  79. don't need to download them.
  80. slmgr.vbs resides in the system32 directory. So you just have to type
  81. "slmgr" in the Windows Command prompt to use it. To use ospp.vbs you'll
  82. have to change the current directory to your Office installation. This
  83. is usually something like "C:\Program Files\Microsoft Office\Office14".
  84. You may type "slmgr" or "cscript ospp.vbs" without parameters to see
  85. help for these commands but this produces some rather confusing output
  86. for newbies.
  87. How to get the GVLK into the product?
  88. Normally every product asks you to enter a key during installation. At
  89. this time simply enter the GVLK. If you skipped this step or entered
  90. some other key which later turned out to be non-working, you can use
  91. "slmgr /ipk GVLK" (Windows) or "cscript ospp.vbs /inpkey:GVLK" (Office)
  92. at any time.
  93. Examples
  94. slmgr /ipk GCRJD-8NW9H-F2CDX-CCM8D-9D6T9
  95. cscript ospp.vbs /inpkey:YC7DK-G2NP3-2QQC3-J6H88-GVGXT
  96. Why doesn't Office accpet a GVLK?
  97. You'll have to install a volume license (VL) version of Office. Office
  98. versions downloaded from MSDN and/or Technet are non-VL.
  99. How to configure a client to use a KMS server?
  100. After you have installed a GVLK you can set your product to use your
  101. KMS server. vlmcsd or another KMS server must already be running on
  102. your server machine.
  103. Windows
  104. Type "slmgr /skms kms-server[:tcp-port]". Example:
  105. "slmgr /skms 192.168.1.17:1688"
  106. Office
  107. 1) Type "cscript ospp.vbs /sethst:kms-server". Example "cscript
  108. ospp.vbs /sethst:192.168.1.17"
  109. 2) Type "cscript ospp.vbs /setprt:tcp-port". Example: cscript
  110. ospp.vbs /setprt:1688
  111. tcp-port is usually 1688 unless you instructed vlmcsd to use a differ‐
  112. ent port which is rarely necessary.
  113. How to activate my product?
  114. If you have installed a product with GVLK and pointed it to working KMS
  115. server like vlmcsd, activation occurs automatically. This may take a
  116. while.
  117. You may type
  118. slmgr /ato
  119. -or-
  120. cscript ospp.vbs /act
  121. at any time to speed up that process. You may repeat these commands
  122. later to extend your activation for another 180 (45) days.
  123. Does vlmcsd work correctly?
  124. If something does not work, it may have the cause that vlmcsd does not
  125. work correctly although this is unlikely. You can test this with the
  126. KMS client vlmcs(1). First type "vlmcs" on the same machine where you
  127. started vlmcsd. If things are ok, you should see something like this:
  128. Connecting to 127.0.0.1:1688 ... successful
  129. Sending activation request (KMS V4) 1 of 1 ->
  130. 06401-00206-296-206344-03-5179-9600.0000-3432013
  131. If anything goes wrong, you'll see an error message. Next try "vlmcs
  132. kms-server" from another machine where kms-server is the hostname or IP
  133. address of your KMS server. If that fails while it works locally,
  134. you'll most likely have to configure your firewall that it accepts
  135. incoming connections on TCP port 1688.
  136. Is there an easier way than using OSPP and SLMGR?
  137. Yes and no. KMS activation was designed for large corporations. Thus
  138. Microsoft designed KMS in a way that corporations can configure their
  139. network infrastructure to fully automate KMS activation. Since this
  140. involves DHCP and DNS, it is not that easy to accomplish that for home
  141. users. However, if you are using an open source router firmware like
  142. OpenWRT or DD-WRT, it is easy to customize DHCP and DNS.
  143. 1) Configure DHCP that it assigns a DNS domain name to your clients (if
  144. it doesn't already), e.g. my-home-net.local
  145. 2) Create zone my-home-net.local in your DNS server (if it doesn't
  146. exist already).
  147. 3) Add the following records to your DNS
  148. _vlmcs._tcp.my-home-net.local. 10800 IN SRV 100 100 kms1.my-home-
  149. net.local.
  150. kms1.my-home-net.local. 10800 IN A 192.168.1.17
  151. Replace 192.168.1.17 with the IP address of your KMS server. If you
  152. don't like a cache time of 10800 seconds (3 hours), replace it with
  153. another number.
  154. This causes that clients will find the KMS server automatically.
  155. AUTHOR
  156. This manual page was written by Hotbird64.
  157. SEE ALSO
  158. vlmcsd(8), vlmcs(1)
  159. Hotbird64 June 2014 VLMCSD(7)