How to Install vlmcsd on CentOS to Build a KMS Activation Server
Key Management Service (KMS) is a new product activation mechanism introduced in products after Windows Vista. You can use an idle VPS to install vlmcsd and set up a KMS activation server. This article uses CentOS as an example, though vlmcsd is not limited to CentOS; it can also be installed on Ubuntu, Windows, and MacOS with the same principles and methods.

Install vlmcsd Server
First, download the latest version from vlmcsd/releases or directly from the Xiaoz Blog software library: vlmcsd-1111-2017-06-17-Hotbird64.gz. The following commands are for reference:
# Download vlmcsd
wget http://soft.xiaoz.org/linux/vlmcsd-1111-2017-06-17-Hotbird64.gz
# Unzip
tar -zxvf vlmcsd-1111-2017-06-17-Hotbird64.gz
# Enter the corresponding directory, distinguish based on your system and CPU
cd binaries/Linux/intel/static
# Copy the vlmcsd binary file to /usr/sbin
cp vlmcsd-x64-musl-static /usr/sbin/vlmcsd
If everything goes smoothly, you can check the help by entering vlmcsd -h, as shown in the screenshot below.

Run vlmcsd again by entering the vlmcsd command. If there are no errors, you can check if it is running by entering netstat -apn|grep 'vlmcsd', as shown in the screenshot below.

Open Ports
vlmcsd listens on port 1688, so you need to allow this port in the firewall:
# If using firewalld
firewall-cmd --zone=public --add-port=1688/tcp --permanent
firewall-cmd --reload
# If using iptables
iptables -A INPUT -p tcp --dport 1688 -j ACCEPT
service iptables save
service iptables restart
At this point, the vlmcsd server is set up. If the above instructions are unclear or too complex, you can use the one-click script by Qiu Shui Yi Bing to install vlmcsd: One-click KMS service installation script.
Local Testing (Optional)
Locally, using Windows as an example, extract the client \binaries\Windows\intel\vlmcs-Windows-x64.exe to any directory and enter that directory to execute the following command for testing:
vlmcs-Windows-x64.exe -v -l 3 Your_VPS_IP_or_Domain
If you see the return information below, the connection is successful and the test passes.

Activate Windows or Office
Activate Windows
Run the cmd terminal as an administrator and enter the following commands in order, or create a *.bat file with the following content.
cd /d "%SystemRoot%\system32"
slmgr /skms Your_VPS_IP_or_Domain
slmgr /ato
slmgr /xpr
Activate Office
# Enter the Office installation directory; the directory may vary for different versions, please modify accordingly
cd /d "%ProgramFiles%\Microsoft Office\Office15"
# Execute the following commands in order
cscript ospp.vbs /sethst:Your_VPS_IP_or_Domain
cscript ospp.vbs /act
cscript ospp.vbs /dstatus
Activate Windows Server 2019
slmgr /ipk CB7KF-BWN84-R7R2Y-793K2-8XDDG
slmgr /skms 192.168.11.101
slmgr /ato
slmgr /xpr
- CB7KF-BWN84-R7R2Y-793K2-8XDDG: Product Key
- 192.168.11.101: IP or domain of the vlmcsd service
KMS Activation Keys for Various Systems:
# Windows Server 2019
Windows Server 2019 Datacenter WMDGN-G9PQG-XVVXX-R3X43-63DFG
Windows Server 2019 Standard N69G4-B89J2-4G8F4-WWYCC-J464C
Windows Server 2019 Essential WVDHN-86M7X-466P6-VHXV7-YY726
# Windows Server 2016
Windows Server 2016 Datacenter CB7KF-BWN84-R7R2Y-793K2-8XDDG
Windows Server 2016 Standard WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY
Windows Server 2016 Essentials JCKRF-N37P4-C2D82-9YXRT-4M63B
# Windows Server 2012 R2
Windows Server 2012 R2 Server Standard D2N9P-3P6X9-2R39C-7RTCD-MDVJX
Windows Server 2012 R2 Datacenter W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9
Windows Server 2012 R2 Essentials KNC87-3J2TX-XB4WP-VCPJV-M4FWM
# Windows Server 2008 R2
Windows Server 2008 R2 Web 6TPJF-RBVHG-WBW2R-86QPH-6RTM4
Windows Server 2008 R2 HPC edition TT8MH-CG224-D3D7Q-498W2-9QCTX
Windows Server 2008 R2 Standard YC6KT-GKW9T-YTKYR-T4X34-R7VHC
Windows Server 2008 R2 Enterprise 489J6-VHDMP-X63PK-3K798-CPX3Y
Windows Server 2008 R2 Datacenter 74YFP-3QFB3-KQT8W-PMXWJ-7M648
# Windows 10
Windows 10 Professional W269N-WFGWX-YVC9B-4J6C9-T83GX
Windows 10 Professional N MH37W-N47XK-V7XM9-C7227-GCQG9
Windows 10 Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43
Windows 10 Enterprise N DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
Windows 10 Education NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
Windows 10 Education N 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
Windows 10 Pro For Workstations NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J
Windows 10 Pro For Workstations N 9FNHH-K3HBT-3W4TD-6383H-6XYWF
Windows 10 Pro For Education 6TP4R-GNPTD-KYYHQ-7B7DP-J447Y
Windows 10 Pro For Education N YVWGF-BXNMC-HTQYQ-CPQ99-66QFC
Windows 10 Enterprise YYVX9-NTFWV-6MDM3-9PT4T-4M68B
Windows 10 Enterprise G N 44RPN-FTY23-9VTTB-MP9BX-T84FV
# Windows 10 LTSC 2019
Windows 10 Enterprise LTSC 2019 M7XTQ-FN8P6-TTKYV-9D4CC-J462D
Windows 10 Enterprise N LTSC 2019 92NFX-8DJQP-P6BBQ-THF9C-7CG2H
# Windows 10 LTSB 2016
Windows 10 Enterprise LTSB 2016 DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ
Windows 10 Enterprise N LTSB 2016 QFFDN-GRT3P-VKWWX-X7T3R-8B639
# Windows 10 LTSB 2015
Windows 10 Enterprise 2015 LTSB WNMTR-4C88C-JK8YV-HQ7T2-76DF9
Windows 10 Enterprise 2015 LTSB N 2F77B-TNFGY-69QQF-B8YKP-D69TJ
# Windows 7
Windows 7 Professional FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
Windows 7 Professional N MRPKT-YTG23-K7D7T-X2JMM-QY7MG
Windows 7 Professional E W82YF-2Q76Y-63HXB-FGJG9-GF7QX
Windows 7 Enterprise 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH
Windows 7 Enterprise N YDRBP-3D83W-TY26F-D46B2-XCKRJ
Windows 7 Enterprise E C29WB-22CC8-VJ326-GHFJW-H9DH4
# Windows Server Version 1809
Windows Server Datacenter 6NMRW-2C8FM-D24W7-TQWMY-CWH2D
Windows Server Standard N2KJX-J94YW-TQVFB-DG9YT-724CC
# Windows Server Version 1803
Windows Server Datacenter 2HXDN-KRXHB-GPYC7-YCKFJ-7FVDG
Windows Server Standard PTXN8-JFHJM-4WC78-MPCBR-9W4KR
# Windows Server Version 1709
Windows Server Datacenter 6Y6KB-N82V8-D8CQV-23MJW-BWTG6
Windows Server Standard DPCNP-XQFKJ-BJF7R-FRC8D-GF6G4
For related product keys, refer to the official Microsoft documentation: https://docs.microsoft.com/zh-cn/windows-server/get-started/kmsclientkeys
Important Notes
- The validity period for KMS activation is only 180 days.
- This tutorial is for learning and testing purposes only. Please delete the relevant software and forget the method within 24 hours.
This article references the following sources: