Python KMS Server

The Windows KMS server has really annoying limits in which you have to have a minimum number of clients. For small networks, this is irritating since you have to run a bunch of otherwise-unnecessary systems to keep the KMS server happy. (or, in our case, the activation can randomly stop working if we have systems which are used very rarely.)

Anyway, someone has reverse-engineered the KMS server and written a clone in Python. This can be easily run under Linux, which is much easier to maintain and doesn't have these stupid limitations. While this could theoretically allow piracy, we do have a legal license for the copies of Windows being used.

  • Minimal install of Debian Jessie
  • aptitude install python git
  • cd /opt
    git clone https://github.com/myanaloglife/py-kms.git
  • echo 'kms:x:501:65534::/nonexistent:/bin/false' >> /etc/passwd
    echo 'kms:*:16342:0:99999:7:::' >> /etc/shadow
  • echo '[Unit]' > /etc/systemd/system/py-kms.service
    echo 'Description=Python KMS Server' >> /etc/systemd/system/py-kms.service
    echo >> /etc/systemd/system/py-kms.service
    echo '[Service]' >> /etc/systemd/system/py-kms.service
    echo 'ExecStart=/usr/bin/python /opt/py-kms/server.py' >> /etc/systemd/system/py-kms.service
    echo 'User=kms' >> /etc/systemd/system/py-kms.service
    echo 'Restart=always' >> /etc/systemd/system/py-kms.service
    echo 'RestartSec=1' >> /etc/systemd/system/py-kms.service
    echo >> /etc/systemd/system/py-kms.service
    echo '[Install]' >> /etc/systemd/system/py-kms.service
    echo 'WantedBy=multi-user.target' >> /etc/systemd/system/py-kms.service
    systemctl enable py-kms.service
    systemctl start py-kms.service

See also: http://forums.mydigitallife.info/threads/50234-Emulated-KMS-Servers-on-non-Windows-platforms

Adding UUID's for Windows 10 and Office 2016: http://forums.mydigitallife.info/threads/50234-Emulated-KMS-Servers-on-non-Windows-platforms/page109?p=1083830&viewfull=1#post1083830 https://forums.mydigitallife.info/threads/52594-Miscellaneous-KMS-related-developments/page40?p=1295770&viewfull=1#post1295770

computer/python_kms_server.txt · Last modified: 2016/12/19 10:42 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS