รวมข้อมูล KMS (Key Management Server) Activation สำหรับ Volume License ให้ครบในบทความเดียว
สถาปัตยกรรมและคุณสมบัติ KMS
KMS Infrastructure: KMS Server (Activated by Microsoft ครั้งเดียว Online/Phone) + KMS Clients (Windows/Desktop/Server + Office)
KMS Server ใช้ CSVLK Key (KMS Host Key) จาก Volume Licensing Service Center → Activate กับ Microsoft ครั้งเดียว (Reactivate ถ้าต้องการ Key ใหม่รองรับ Windows ใหม่)
1 KMS Server Activate Clients ไม่จำกัดจำนวน (License Agreement อาจจำกัด แต่ Technical ไม่ Block) ข้อมูล Activation ไม่ออกนอก Network
รองรับ Cross-domain, Workgroup, Windows + Office พร้อมกัน
DNS SRV Record _VLMCS → Client หา KMS Server เอง
nslookup -type=srv _vlmcs._tcp.corp.woshub.com _vlmcs._tcp.corp.woshub.com SRV priority=0 weight=0 port=1688 svr hostname=ny-kms01.corp.woshub.com
Client ต้องใส่ GVLK (Generic Volume License Key) → หา SRV Record → Activate
GVLK List: Win 7/2008, 8.1/2012R2, 10/2016, 10 LTSC/2019, Office 2019/2016/2013/2010
KMS Host Key ใหม่ Activate Version เก่าได้ Version ใหม่ Activate Version เก่าไม่ได้ (ต้อง Upgrade KMS Host Key)
ADBA (Active Directory Based Activation): Extension ของ KMS Activate Win 8+/2012+/Office 2013+ ที่ Join Domain ไม่ต้อง KMS Server แยก (HA ดี แต่ไม่ Activate Workgroup)
KMS Server Requirements
- Server/Workstation + Role Volume Activation Services (Server Manager หรือ
Install-WindowsFeature -Name VolumeActivation -IncludeAllSubFeature –Include ManagementTool) - Install CSVLK → Activate:
slmgr /ipk <key> && slmgr /ato(ต้อง Internet 80/443 หรือ Phone Activation) - Port TCP 1688 เปิดระหว่าง Client-Server
- Activation Threshold: Desktop 25, Server 5, Office 5 (เพิ่มได้ด้วย Script)
- Client Renew ทุก 7 วัน หาก 180 วันไม่ต่อ KMS → Grace Period → ใช้ MAK Key สำหรับเครื่อง Offline นาน
- KMS เบา ไม่ต้อง HA Down ชั่วโมง/วัน ไม่กระทบ
Microsoft Office KMS Activation
ติดตั้ง Microsoft Office Volume License Pack ตาม Version Office → Install Office CSVLK → Activate
VAMT (Volume Activation Management Tool)
- อยู่ใน Windows ADK ติดตั้งแยก ต้อง .NET Framework + SQL Express
- VAMT 3.1 รองรับ Win 10/Server 2019
ปัญหาและ Troubleshooting
- Client ใส่ CSVLK แทน GVLK
- GVLK ไม่ตรง Version OS
- KMS Server เก่าไม่รองรับ Product ใหม่ → Upgrade KMS Host Key
- Error 0xC004F074: ขาด SRV Record _VLMCS → สร้าง DNS หรือระบุ KMS Manual
- Error 0xC004F038: Client น้อยกว่า Threshold → รอจำนวนครบ
- เช็ค Port 1688:
TNC kms-server -Port 1688 -InformationLevel Quiet(Firewall/sppsvc service)
คำสั่ง SLMGR สำหรับ Windows KMS
# Install GVLK
cscript.exe %windir%\system32\slmgr.vbs /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
# Specify KMS Server
cscript.exe %windir%\system32\slmgr.vbs /skms kms-srv.woshub.com:1688
# Activate
slmgr /ato
# Status
slmgr.vbs /dlv
slmgr.vbs /dlv all
# Export to file
cscript.exe %windir%\system32\slmgr.vbs s /dlv all > c:\tmp\dlv.txt
Activate Office ด้วย OSPP.VBS
Path: \Program Files\Microsoft Office\Office16\ospp.vbs (Office 2016)
cscript ospp.vbs /sethst:kms-srv.woshub.com
cscript ospp.vbs /setprt:1689
cscript ospp.vbs /act
cscript ospp.vbs /dstatusall