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" /inpkey:<Client_Setup_Key> Client setup keys are published by Microsoft (e.g., for Office LTSC Professional Plus 2021). cscript ospp.vbs /sethost:kms.domain.local 5.3. Force Activation Attempt cscript ospp.vbs /act 6. Monitoring & Reporting 6.1. View KMS Host Counts slmgr.vbs /dli Output includes current client count, total requests, and licensed status. 6.2. Office-Specific Client Details On KMS host: 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