网速问题,不常来CSDN了,想要阅读更多博文,请访问我的个人博客站。http://linuxexam.net
Note: It's illegal to activate Windows/Office by a non-authorized KMS server. This article is for learning purpose only. Buy a license from Microsoft if you want to use it daily.
1. What are KMS and KMS server
KMS stands for Key Management Service, which is used for activating multiple Windows or Offices. Microsoft produces KMS server software that can run on Windows platforms. The KMS server software needs a product key for itself from Microsoft.
The Windows to be activated use the same product key (GVLK/General Volume Licensing Key) published publicly officially by Microsoft at:
https://docs.microsoft.com/en-us/windows-server/get-started/kmsclientkeys
Like many other software, KMS server has also been hacked. Many unofficial KMS server exist, of which is the open sourced vlmcsd with source code published on github at
https://github.com/Wind4/vlmcsd.
In this article, we will use vlmcsd to demonstrated how to active windows via KMS.
2. Build a KMS server with vlmcsd on CentOS 7
To be honest, vlmcsd goes with decent documents especially the manual pages. It can run on many different Oses including Windows, Linux, and Android. We use Linux (CentOS) in this article.
git clone https://github.com/Wind4/vlmcsd.git
cd vlmcsd
make
After make, a new directory vlmcsd/bin was created. The binaries are inside this folder.
cd ./bin
./vlmcsd -De # -D for foreground running, -e for stdout print
vlmcsd listens on 1688/TCP by default. Let's add a firewall rule to let incoming packets for it get through.
firewall-cmd --add-port=1688/tcp --permanent
firewall-cmd --reload