Latest Posts

Activate Windows/Office (Run KMS Docker / Install KMS)

What is the Key Management Service (KMS)?
The Key Management Service (KMS) is an activation service that allows organizations to activate systems within their own network, eliminating the need for individual computers to connect to Microsoft for product activation. It does not require a dedicated system and can be easily co-hosted on a system that provides other services.

This post is to show how to run KMS Docker, How to install KMS and how to use KMS to activate your windows and office software.

KMS Docker

docker pull luodaoyi/kms-server
docker run -d -p 1688:1688 --restart=always --name="kms" luodaoyi/kms-server



Configure Windows System to Use KMS server
slmgr /skms ip:1688
If you are using default port 1688, slmgr /skms ip

(slmgr /skms 132.145.98.41)
activate your machine
slmgr /ato
check activation status
slmgr /xpr

Install KMS

Log in as root user

wget --no-check-certificate https://github.com/teddysun/across/raw/master/kms.sh && chmod +x kms.sh && ./kms.sh
Check port 1688
netstat -nxtlp | grep 1688

tcp        0      0 0.0.0.0:1688                0.0.0.0:*                   LISTEN      3200/vlmcsd         
tcp        0      0 :::1688                     :::*                        LISTEN      3200/vlmcsd 
The script will automatically enable KMS service and add it into reboot start list.
Commands:
Start:/etc/init.d/kms start
Stop:/etc/init.d/kms stop
Restart:/etc/init.d/kms restart
Status:/etc/init.d/kms status
Uninstall:
Log in as root user
./kms.sh uninstall

Get Windows Key 

Office 2019 & Office 2016:https://docs.microsoft.com/en-us/DeployOffice/vlactivation/gvlks
Office 2013:https://technet.microsoft.com/zh-cn/library/dn385360.aspx
Office 2010:https://technet.microsoft.com/zh-cn/library/ee624355(v=office.14).aspx
Windows:https://docs.microsoft.com/zh-cn/windows-server/get-started/kmsclientkeys


Activate Windows System

C:\Users\test>wmic os get caption
Caption
Microsoft Windows 10 Pro


Install Key which you found from above section (KMS client setup keys)
slmgr /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
slmgr /skms Your IP or Domain:1688

Key can be found from : https://itprosec.com/index.php/community/hacking/%e6%90%ad%e5%bb%bakms%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88docker%ef%bc%89/

C:\Windows\system32>wmic os get caption
Caption
Microsoft Windows Server 2012 R2 Datacenter
C:\Windows\system32>slmgr /skms 132.145.98.41
C:\Windows\system32>slmgr /ipk W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9
C:\Windows\system32>slmgr /ato
C:\Windows\system32>slmgr /xpr
C:\Windows\system32>

Activate Office

It has to be VOL version.
Found your office installation folder, for 32B version, the location is  C:\Program Files (x86)\Microsoft Office\Office16
64B : C:\Program Files\Microsoft Office\Office16
Office16 is Office 2016,Office15 is Office 2013,Office14 is Office 2010。
Open the folder, OSPP.VBS should be in the list.
rum cmd as administrator
cd "C:\Program Files (x86)\Microsoft Office\Office16"
register your KMS server and port:
cscript ospp.vbs /sethst:Your IP or Domain
activate your Office VOL version. 
cscript ospp.vbs /act
Note: KMS activation only valid for 180 days, (6 months). You will need to re-activate it after 6 months. Please make sure your KMS server is up.

No comments