Windows系统和linux系统下的KMS激活服务器搭建

本文以Windows 10和ubuntu server 18.04为例,讲述如何搭建KMS服务器。

一、基于Windows平台的搭建

首先,在该网站下载服务端的程序:

https://forums.mydigitallife.net/threads/emulated-kms-servers-on-non-windows-platforms.50234/

下载完后,根据不同的Windows位数版本,选择不同的程序,例如64位系统选择 vlmcsd-Windows-x64.exe,在该程序所在的目录打开cmd或者powershell命令,执行该程序即可开启(需要1688端口处于开放状态)。如下图所示:

出现1688端口即表示该服务端程序处于运行中,此时即可在需要激活的客户端上执行相应的命令进行激活。

该方式为一次性方式,程序关闭或者重启后服务端就失效了,再次开启需要重新运行该命令。可以将该程序加入到计划任务或者开机自启,以实现开机即启动KMS服务。

—————————-分割线—————————-

二、基于linux平台的搭建

首先,在上半段文章相同的网址下载程序,本机为64位X86平台,所以选择vlmcsd-x64-glibc。

本文为了简化流程,在/目录新建文件夹vlmcsd,并将服务端程序上传至该目录,使用chmod命令修改权限为777,随后在/vlmcsd文件夹下执行命令”./vlmcsd-x64-glibc”即可开启该程序。

但是该方式也为一次性方式,如需要开机自启,则需要加入开机脚本中。由于新的linux系统采用了systemd启动方式,所以开机脚本分为两类。首先是旧版系统:

修改/etc/rc.local文件,在其中加入命令 “/vlmcsd/vlmcsd-x64-glibc”即可,如需增加日志,则加入”/vlmcsd/vlmcsd-x64-glibc -l /vlmcsd/vlmcsd-x64-glibc.log”。

然后是采用了systemd的新系统:

文件目录和旧系统一致,只是命令方式改变。在/etc/systemd/system目录下新建kms.service文件,并将如下内容写入到该文件:

[Unit]
Description=kms server
After=network.target

[Service]
ExecStart=/vlmcsd/vlmcsd-x64-glibc -l /vlmcsd/vlmcsd-x64-glibc.log
Type=simple
KillMode=process
Restart=always

[Install]
WantedBy=multi-user.target

随后执行命令systemctl start kms.service和systemctl enable kms.service用于启动该程序以及设置为开机自启。如需关闭开机自启,则执行systemctl disable kms.service。

通过命令”ps -aux | grep vlmcsd”即可查看程序是否运行。

以下为可激活的系统/软件目录:



  1 = Windows Server 2019 ARM64                               
  2 = Windows Server 2019 Azure Core                          
  3 = Windows Server 2019 Datacenter                          
  4 = Windows Server 2019 Essentials                          
  5 = Windows Server 2019 Standard                            
  6 = Windows Server 2019 Datacenter (Semi-Annual Channel)    
  7 = Windows Server 2019 Standard (Semi-Annual Channel)      
  8 = Windows 10 Enterprise LTSC 2019                         
  9 = Windows 10 Enterprise LTSC 2019 N                       
 10 = Windows 10 Enterprise G                                 
 11 = Windows 10 Enterprise GN                                
 12 = Windows 10 Enterprise 2016 LTSB                         
 13 = Windows 10 Enterprise 2016 LTSB N                       
 14 = Windows 10 Home                                         
 15 = Windows 10 Home Country Specific                        
 16 = Windows 10 Home N                                       
 17 = Windows 10 Home Single Language                         
 18 = Windows 10 Education                                    
 19 = Windows 10 Education N                                  
 20 = Windows 10 Enterprise                                   
 21 = Windows 10 Enterprise 2015 LTSB                         
 22 = Windows 10 Enterprise 2015 LTSB N                       
 23 = Windows 10 Enterprise N                                 
 24 = Windows 10 Professional Workstation                     
 25 = Windows 10 Professional Workstation N                   
 26 = Windows 10 Professional                                 
 27 = Windows 10 Professional Education                       
 28 = Windows 10 Professional Education N                     
 29 = Windows 10 Professional N                               
 30 = Windows 10 Professional Preview                         
 31 = Windows 10 Enterprise Preview                           
 32 = Windows 10 Enterprise for Virtual Desktops              
 33 = Windows 10 Remote Server                                
 34 = Windows 10 S (Lean)                                     
 35 = Windows 7 Enterprise                                    
 36 = Windows 7 Enterprise E                                  
 37 = Windows 7 Enterprise N                                  
 38 = Windows 7 Professional                                  
 39 = Windows 7 Professional E                                
 40 = Windows 7 Professional N                                
 41 = Windows 7 Embedded POSReady                             
 42 = Windows 7 Embedded Standard                             
 43 = Windows 7 ThinPC                                        
 44 = Windows 8 Core                                          
 45 = Windows 8 Core Country Specific                         
 46 = Windows 8 Core N                                        
 47 = Windows 8 Core Single Language                          
 48 = Windows 8 Professional WMC                              
 49 = Windows 8 Embedded Industry Professional                
 50 = Windows 8 Embedded Industry Enterprise                  
 51 = Windows 8 Enterprise                                    
 52 = Windows 8 Enterprise N                                  
 53 = Windows 8 Professional                                  
 54 = Windows 8 Professional N                                
 55 = Windows 8.1 Core                                        
 56 = Windows 8.1 Core ARM                                    
 57 = Windows 8.1 Core Country Specific                       
 58 = Windows 8.1 Core N                                      
 59 = Windows 8.1 Core Single Language                        
 60 = Windows 8.1 Professional Student                        
 61 = Windows 8.1 Professional Student N                      
 62 = Windows 8.1 Professional WMC                            
 63 = Windows 8.1 Core Connected                              
 64 = Windows 8.1 Core Connected Country Specific             
 65 = Windows 8.1 Core Connected N                            
 66 = Windows 8.1 Core Connected Single Language              
 67 = Windows 8.1 Enterprise                                  
 68 = Windows 8.1 Enterprise N                                
 69 = Windows 8.1 Professional                                
 70 = Windows 8.1 Professional N                              
 71 = Windows 8.1 Embedded Industry Professional              
 72 = Windows 8.1 Embedded Industry Automotive                
 73 = Windows 8.1 Embedded Industry Enterprise                
 74 = Windows 10 Enterprise Preview                           
 75 = Windows 10 Professional Preview                         
 76 = Windows 10 Professional WMC Preview                     
 77 = Windows 8.x Preview                                     
 78 = Windows 8.x Preview ARM                                 
 79 = Windows Server 2008 Web                                 
 80 = Windows Server 2008 Compute Cluster                     
 81 = Windows Server 2008 Standard                            
 82 = Windows Server 2008 Standard without Hyper-V            
 83 = Windows Server 2008 Enterprise                          
 84 = Windows Server 2008 Enterprise without Hyper-V          
 85 = Windows Server 2008 Datacenter                          
 86 = Windows Server 2008 Datacenter without Hyper-V          
 87 = Windows Server 2008 for Itanium                         
 88 = Windows MultiPoint Server 2010                          
 89 = Windows Server 2008 R2 Web                              
 90 = Windows Server 2008 R2 HPC Edition                      
 91 = Windows Server 2008 R2 Standard                         
 92 = Windows Server 2008 R2 Enterprise                       
 93 = Windows Server 2008 R2 Datacenter                       
 94 = Windows Server 2008 R2 for Itanium Enterprise           
 95 = Windows Server 2012 Datacenter                          
 96 = Windows Server 2012 MultiPoint Premium                  
 97 = Windows Server 2012 MultiPoint Standard                 
 98 = Windows Server 2012 Standard                            
 99 = Windows Server 2012 R2 Cloud Storage                    
100 = Windows Server 2012 R2 Datacenter                       
101 = Windows Server 2012 R2 Essentials                       
102 = Windows Server 2012 R2 Standard                         
103 = Windows Server 2016 Azure Core                          
104 = Windows Server 2016 Cloud Storage                       
105 = Windows Server 2016 Datacenter                          
106 = Windows Server 2016 Essentials                          
107 = Windows Server 2016 Standard                            
108 = Windows Server 2016 ARM64                               
109 = Windows Server 2016 Datacenter (Semi-Annual Channel)    
110 = Windows Server 2016 Standard (Semi-Annual Channel)      
111 = Windows Server 2016 Datacenter Preview                  
112 = Windows Vista Business                                  
113 = Windows Vista Business N                                
114 = Windows Vista Enterprise                                
115 = Windows Vista Enterprise N                              
116 = Office Access 2010                                      
117 = Office Excel 2010                                       
118 = Office Groove 2010                                      
119 = Office InfoPath 2010                                    
120 = Office Mondo 1 2010                                     
121 = Office Mondo 2 2010                                     
122 = Office OneNote 2010                                     
123 = Office OutLook 2010                                     
124 = Office PowerPoint 2010                                  
125 = Office Professional Plus 2010                           
126 = Office Project Pro 2010                                 
127 = Office Project Standard 2010                            
128 = Office Publisher 2010                                   
129 = Office Small Business Basics 2010                       
130 = Office Standard 2010                                    
131 = Office Visio Premium 2010                               
132 = Office Visio Pro 2010                                   
133 = Office Visio Standard 2010                              
134 = Office Word 2010                                        
135 = Office Access 2013                                      
136 = Office Excel 2013                                       
137 = Office InfoPath 2013                                    
138 = Office Lync 2013                                        
139 = Office Mondo 2013                                       
140 = Office OneNote 2013                                     
141 = Office OutLook 2013                                     
142 = Office PowerPoint 2013                                  
143 = Office Professional Plus 2013                           
144 = Office Project Pro 2013                                 
145 = Office Project Standard 2013                            
146 = Office Publisher 2013                                   
147 = Office Standard 2013                                    
148 = Office Visio Pro 2013                                   
149 = Office Visio Standard 2013                              
150 = Office Word 2013                                        
151 = Office Access 2013 (Pre-Release)                        
152 = Office Excel 2013 (Pre-Release)                         
153 = Office Groove 2013 (Pre-Release)                        
154 = Office InfoPath 2013 (Pre-Release)                      
155 = Office Lync 2013 (Pre-Release)                          
156 = Office Mondo 2013 (Pre-Release)                         
157 = Office OneNote 2013 (Pre-Release)                       
158 = Office Outlook 2013 (Pre-Release)                       
159 = Office PowerPoint 2013 (Pre-Release)                    
160 = Office Professional Plus 2013 (Pre-Release)             
161 = Office Project Pro 2013 (Pre-Release)                   
162 = Office Project Standard 2013 (Pre-Release)              
163 = Office Publisher 2013 (Pre-Release)                     
164 = Office Visio Pro 2013 (Pre-Release)                     
165 = Office Visio Standard 2013 (Pre-Release)                
166 = Office Word 2013 (Pre-Release)                          
167 = Office Access 2016                                      
168 = Office Excel 2016                                       
169 = Office Mondo 2016                                       
170 = Office Mondo R 2016                                     
171 = Office OneNote 2016                                     
172 = Office Outlook 2016                                     
173 = Office Powerpoint 2016                                  
174 = Office Professional Plus 2016                           
175 = Office Project Pro 2016                                 
176 = Office Project Pro 2016 C2R                             
177 = Office Project Standard 2016                            
178 = Office Project Standard 2016 C2R                        
179 = Office Publisher 2016                                   
180 = Office Skype for Business 2016                          
181 = Office Standard 2016                                    
182 = Office Visio Pro 2016                                   
183 = Office Visio Pro 2016 C2R                               
184 = Office Visio Standard 2016                              
185 = Office Visio Standard 2016 C2R                          
186 = Office Word 2016                                        
187 = Office Professional Plus 2019 C2R Preview               
188 = Office Project Pro 2019 C2R Preview                     
189 = Office Visio Pro 2019 C2R Preview                       
190 = Office Access 2019                                      
191 = Office Excel 2019                                       
192 = Office Outlook 2019                                     
193 = Office Powerpoint 2019                                  
194 = Office Professional Plus 2019                           
195 = Office Project Pro 2019                                 
196 = Office Project Standard 2019                            
197 = Office Publisher 2019                                   
198 = Office Skype for Business 2019                          
199 = Office Standard 2019                                    
200 = Office Visio Pro 2019                                   
201 = Office Visio Standard 2019                              
202 = Office Word 2019                                        

发表评论