diff --git a/py-kms/templates/instructions.html b/py-kms/templates/instructions.html new file mode 100644 index 0000000..7949777 --- /dev/null +++ b/py-kms/templates/instructions.html @@ -0,0 +1,147 @@ +{% extends 'base.html' %} + +{% block title %}Instructions{% endblock %} + +{% block content %} +
+ +
+

Documentation

+

+ The wiki is available on readthedocs.io. It should provide you all the necessary information about how to set + up and use py-kms, without cluttering this readme. The documentation also includes more details about + activation with py-kms and how to get GVLK keys. +

+
+ +
+

Getting Started

+

+ The //nologo option of cscript was used only to hide the startup logo. +

+
    +
  1. Windows
  2. +
  3. Office
  4. + +
+
+ +
+

Windows

+
    +
  1. Run a Command Prompt as Administrator (you are directly in C:\Windows\System32 path); +
      +
    • cscript //nologo slmgr.vbs /upk
    • +
    +
  2. +
  3. This is optional, it's for uninstalling any existing product key; +
      +
    • cscript //nologo slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
    • +
    +
  4. +
  5. Then put in your product's GVLK; +
      +
    • cscript //nologo slmgr.vbs /skms ip_adress:1688
    • +
    +
  6. +
  7. Set connection parameters; +
      +
    • cscript //nologo slmgr.vbs /ato
    • +
    +
  8. +
  9. Try online activation, but if that fails with error… +
      +
    • * 0xC004F074 You'll most likely have to configure your firewall to accept incoming + connections on TCP port 1688. So for Linux users (server-side with + pykms_Server.py running): sudo ufw allow 1688 (revert this rule + sudo ufw delete allow 1688) should fix that.
    • +
    • * 0xC004F069 Take a look at the issue here, it may + help you…
    • +
    +
      +
    • cscript //nologo slmgr.vbs /ato
    • +
    +
  10. +
  11. Attempt online activation (now with traffic on 1688 enabled); +
      +
    • cscript //nologo slmgr.vbs /dlv
    • +
    +
  12. +
  13. View license information (optional).
  14. + +
+
+ win1 + win2 +
+
+ +
+

Office

+

+ Note that you'll have to install a volume license (VL) version of Office. Office versions downloaded from + MSDN and / or Technet are non-VL. +

+
    +
  1. Run a Command Prompt as Administrator and navigate to Office folder + cd C:\ProgramFiles\Microsoft Office\OfficeXX (64-bit path) or + cd C:\ProgramFiles(x86)\Microsoft Office\OfficeXX (32-bit path), where XX = 14 + for Office 2010, 15 for Office 2013, 16 for Office 2016 or Office 2019 or + Office 2021;
  2. +
  3. As you can see, running /dstatus, my Office is expiring (14 days remaining); +
      +
    • cscript //nologo ossp.vbs /dstatus
    • +
    +
  4. +
  5. Only for example, let's go to uninstall this product; +
      +
    • cscript //nologo ossp.vbs /unpkey:WFG99
    • +
    +
  6. +
  7. This is confirmed running /dstatus again; +
      +
    • cscript //nologo ossp.vbs /dstatus
    • +
    +
  8. +
  9. Now i put my product's GVLK (and you your key); +
      +
    • cscript //nologo ossp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
    • +
    +
  10. +
  11. Set the connection parameter KMS server address; +
      +
    • cscript //nologo ossp.vbs /sethst:ip_adres
    • +
    +
  12. +
  13. Set the connection parameter KMS server port; +
      +
    • cscript //nologo ossp.vbs /setprt:1688
    • +
    +
  14. +
  15. Activate installed Office product key; +
      +
    • cscript //nologo ossp.vbs /act
    • +
    +
  16. +
  17. View license informations (in my case product is now licensed and remaining grace 180 days as expected). +
      +
    • cscript //nologo ossp.vbs /dstatus
    • +
    +
  18. + +
+
+ off1 + off2 + off3 + off4 +
+
+
+{% endblock %}