[关闭]
@ferstar 2015-11-13T16:29:13.000000Z 字数 3630 阅读 5230

局域网部署KMS激活服务

OS WIN


源码在这里:

Emulated KMS Servers on non-Windows platforms

目标系统(服务器)

部署步骤

  1. 假定已经安装过yaourt
    首先需要更新当前系统yaourt -Syu

  2. yaourt vlmcsd安装vlmcsd

  3. 编译安装完成后启动应用

    1. sudo systemctl enable vlmcsd # 设置自启动
    2. sudo systemctl start vlmcsd # 启动应用
  4. 安装最后一步可能会报错

    chown: cannot access '/var/lib/vlmcsd': No such file or directory
    error: command failed to execute correctly

    似乎是makefile忘了新建vlmcsd这个文件夹, 需要手动新建

    sudo chown -R vlmcsd:vlmcsd /var/lib/vlmcsd

    混linux需要弄好权限的问题, 为何要把这个文件夹给vlmcsd用户, 答案在这里:
    sudo vim /usr/lib/systemd/system/vlmcsd.service

编译问题及解决方法

  1. ( Unsupported package: Potentially dangerous ! )
    警告不支持, 忽略即可

  2. 感谢GFW, clang这个包可能无法顺利安装
    只能挂代理export http_proxy=http://xxx.xxx.x.x:xxx

  3. ERROR: One or more files did not pass the validity check!
    又是GFW的功劳, vlmcsd.7z这个包无法顺利下载, 自然也就无法通过文件校验, 所以需要提前下好, 放在本地ftp或者http服务器上, 然后Edit PKGBUILD with: vim把原来的下载链接替换掉即可

客户机激活说明

上面的服务器IP地址: 192.168.1.12 端口: 1688

  1. 激活Windows

    CD "%SystemRoot%\SYSTEM32"
    CSCRIPT /NOLOGO SLMGR.VBS /SKMS 192.168.1.12
    CSCRIPT /NOLOGO SLMGR.VBS /ATO
    CSCRIPT /NOLOGO SLMGR.VBS /XPR
  2. 激活office

    32位:CD "%ProgramFiles(x86)%\MICROSOFT OFFICE\OFFICE15"
    64位:CD "%ProgramFiles%\MICROSOFT OFFICE\OFFICE15"
    # 2010换下安装路径
    CSCRIPT OSPP.VBS /SETHST:192.168.1.12
    CSCRIPT OSPP.VBS /ACT
    CSCRIPT OSPP.VBS /DSTATUS

激活日志

  1. C:\WINDOWS\system32>CD "%ProgramFiles%\MICROSOFT OFFICE\OFFICE15"
  2. C:\Program Files\Microsoft Office\Office15>CSCRIPT OSPP.VBS /SETHST:192.168.1.12
  3. Microsoft (R) Windows Script Host Version 5.812
  4. 版权所有(C) Microsoft Corporation。保留所有权利。
  5. ---Processing--------------------------
  6. ---------------------------------------
  7. Successfully applied setting.
  8. ---------------------------------------
  9. ---Exiting-----------------------------
  10. C:\Program Files\Microsoft Office\Office15>CSCRIPT OSPP.VBS /ACT
  11. Microsoft (R) Windows Script Host Version 5.812
  12. 版权所有(C) Microsoft Corporation。保留所有权利。
  13. ---Processing--------------------------
  14. ---------------------------------------
  15. Installed product key detected - attempting to activate the following product:
  16. SKU ID: b322da9c-a2e2-4058-9e4e-f59a6970bd69
  17. LICENSE NAME: Office 15, OfficeProPlusVL_KMS_Client edition
  18. LICENSE DESCRIPTION: Office 15, VOLUME_KMSCLIENT channel
  19. Last 5 characters of installed product key: GVGXT
  20. <Product activation successful>
  21. ---------------------------------------
  22. ---------------------------------------
  23. ---Exiting-----------------------------
  24. C:\Program Files\Microsoft Office\Office15>CSCRIPT OSPP.VBS /DSTATUS
  25. Microsoft (R) Windows Script Host Version 5.812
  26. 版权所有(C) Microsoft Corporation。保留所有权利。
  27. ---Processing--------------------------
  28. ---------------------------------------
  29. SKU ID: b322da9c-a2e2-4058-9e4e-f59a6970bd69
  30. LICENSE NAME: Office 15, OfficeProPlusVL_KMS_Client edition
  31. LICENSE DESCRIPTION: Office 15, VOLUME_KMSCLIENT channel
  32. BETA EXPIRATION: 1601/1/1
  33. LICENSE STATUS: ---LICENSED---
  34. REMAINING GRACE: 180 days (259200 minute(s) before expiring)
  35. Last 5 characters of installed product key: GVGXT
  36. Activation Type Configuration: ALL
  37. DNS auto-discovery: KMS name not available
  38. KMS machine registry override defined: 192.168.1.12:1688
  39. Activation Interval: 120 minutes
  40. Renewal Interval: 10080 minutes
  41. KMS host caching: Enabled
  42. ---------------------------------------
  43. ---------------------------------------
  44. ---Exiting-----------------------------

KEY

  1. Win10企业版密钥:
  2. [Key]:VTNMT-2FMYP-QCY43-QR9VK-WTVCK
  3. [Key]:PBHCJ-Q2NYD-2PX34-T2TD6-233PK
  4. Win10专业版密钥:
  5. [Key]:NKJFK-GPHP7-G8C3J-P6JXR-HQRJR

Windows专业版用户激活请依次输入:(CMD)
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms kms.xspace.in
slmgr /ato

专业版:
NPPR9-FWDCX-D2C8J-H872K-2YT43;
VK7JG-NPHTM-C97JM-9MPGT-3V66T;
W269N-WFGWX-YVC9B-4J6C9-T83GX
专业版N:
2B87N-8KFHP-DKV6R-Y2C8J-PKCKT
企业版:
XGVPP-NMH47-7TTHJ-W3FW7-8HV2C
教育版:
YNMGQ-8RYV3-4PGQ3-C8XTP-7CFBY
单语言版:
BT79Q-G7N6G-PGBYW-4YWX6-6F4BT

BAT

  1. @echo off
  2. cd C:\Program Files\Microsoft Office\Office15
  3. cscript ospp.vbs /inpkey:NK8R7-8VXCQ-3M2FM-8446R-WFD6X
  4. cscript ospp.vbs /sethst:192.168.1.12
  5. cscript ospp.vbs /act
  6. cscript ospp.vbs /dstatus
  7. cscript ospp.vbs /remhst
  8. pause
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注