Fish in the river

思考 技术
记录 回忆
  1. Main page
  2. 运维技术
  3. Windows
  4. Main content

自建KMS_SERVER激活Windows 11

2025年4月23日 29hotness 0likes 0comments

需要Docker基础。需要科学上网拉取Docker镜像。

一. 运行一个KMS SERVER container.我用的是mikolatero/vlmcsd。

docker run -d -p 1688:1688 --restart=always --name vlmcsd mikolatero/vlmcsd

二. 在Windows上用管理员权限依次执行如下命令。

slmgr.vbs -upk
slmgr.vbs -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX(key可以从此链接获取)
slmgr.vbs -skms DOCKER_IP:PORT
slmgr.vbs -ato
slmgr.vbs -dlv

三.如需激活Office

cd \Program Files\Microsoft Office\Office16
cscript ospp.vbs /sethst:DOCKER_IP
cscript ospp.vbs /setprt:PORT
cscript ospp.vbs /inpkey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx (key可以从此链接获取)
cscript ospp.vbs /act
cscript ospp.vbs /dstatusall

 

Tag: Windows
Last updated:2025年4月23日

joey

This person is a lazy dog and has left nothing

Like
< Last article
Next article >

Comments

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
Cancel

归档

  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024

分类目录

  • C#
  • Dock
  • Excel
  • Kindle
  • Linux
  • Windows
  • 生活感悟
  • 群晖
  • 运维技术

COPYRIGHT © 2024 水中小鱼. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang