cscript ospp.vbs /inpkey:YOUR-MAK-KEY-HERE cscript ospp.vbs /act | Command | Description | |---------|-------------| | cscript ospp.vbs /dstatus | Display installed license status | | cscript ospp.vbs /inpkey:<Key> | Install product key | | cscript ospp.vbs /unpkey:<Last5> | Uninstall key (from /dstatus output) | | cscript ospp.vbs /act | Attempt online/KMS activation | | cscript ospp.vbs /dinstid | Display Installation ID (for telephone activation) | | cscript ospp.vbs /actcid:<ConfirmationID> | Activate by phone | | cscript ospp.vbs /sethost:<KMS_Server:Port> | Set KMS host | | cscript ospp.vbs /remhost | Remove KMS host | | cscript ospp.vbs /rearm | Reset licensing timers (limited uses) | 7. Example: Full Activation Session (Volume License) C:\Windows\System32> cd "C:\Program Files\Microsoft Office\Office16" C:\Program Files\Microsoft Office\Office16> cscript ospp.vbs /dstatus --- No installed product keys detected.
1. Executive Summary Objective: To document the legitimate methods for activating Microsoft Office 365 (now Microsoft 365) using Command Prompt (CMD) and the Office Licensing Tool ( OSPP.VB ). activar office 365 desde cmd
C:\Program Files\Microsoft Office\Office16> cscript ospp.vbs /inpkey:N9KXK-6YJ7Q-TJK6V-3B7F7-CF4X3 Product key installed successfully. cscript ospp
N9KXK-6YJ7Q-TJK6V-3B7F7-CF4X3 This key only activates against a valid KMS server; it does not activate standalone. cscript ospp.vbs /sethost:kms.yourdomain.com:1688 cscript ospp.vbs /act Replace kms.yourdomain.com with your organization’s KMS host. 5.6 – Activate using a MAK key (Multiple Activation Key) If you have a MAK key, simply install it and activate online: activation is digital and automatic.
C:\Program Files\Microsoft Office\Office16> cscript ospp.vbs /sethost:kms.contoso.com:1688 KMS host set successfully.
| Activation Type | Description | CMD Applicability | |----------------|-------------|--------------------| | | User signs in with a licensed Microsoft account; activation is digital and automatic. | Minimal – CMD cannot replace login. | | Volume Licensing (KMS / MAK) | For organizations with multiple devices. Uses KMS host or MAK keys. | Full CMD support via ospp.vbs . |