netsh advfirewall firewall add rule name="Office KMS" dir=in action=allow protocol=TCP localport=1688 5.1. Set KMS Client Setup Key (if not preinstalled) On each Office volume client, set the generic KMS client key:
cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /inslic:<path_to_KMS_host_license_file>.xrm-ms Alternatively, use the Software Licensing Manager: office kms server
slmgr.vbs /ipk <Office_KMS_Host_Key> Replace <Office_KMS_Host_Key> with the 25-character key from VLSC. slmgr.vbs /ato Confirm activation: netsh advfirewall firewall add rule name="Office KMS" dir=in