How to build a kms server
Option 1: docker mode
1
2
3
4
5
| docker pull luodaoyi/kms-server
docker run -itd -p 1688:1688 --name kms luodaoyi/kms-server
docker update --restart=always $dockername
|
Option 2: docker compose
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
| version: '3'
services:
frontend:
image: luodaoyi/kms-server
container_name: mykms
ports:
- 1688:1688
restart: always
|
docker-compose start the container
Active Script
1
2
3
4
5
6
7
8
| echo "To active office"
cd "%programfiles%\Microsoft Office\Office16"
cscript ospp.vbs /sethst:xx.xx.xx.xx
cscript ospp.vbs /act
echo "to active windows"
slmgr /skms xxx.xxx.xxx.xxx
slmgr /ato
|
Reference