If no key is installed or you have the wrong key, install your genuine Office 365 key.
cscript ospp.vbs /inpkey:YOUR-PRODUCT-KEY-HERE
Replace YOUR-PRODUCT-KEY-HERE with the 25-character key from your Microsoft receipt.
For Microsoft 365 Account holders (Digital License): If you bought Office via the Microsoft Store, you don't usually type a key. Instead, ensure you are signed into the correct Microsoft Account inside the Office app (Word/Excel). CMD cannot activate digital entitlements; you must use the "Sign in" button. activar office 365 cmd windows 11 original
Before activating, verify your current license state:
cscript ospp.vbs /dstatus
This will show:
If you see multiple entries, note the Product Key suffix.
Enter your legitimate product key (format: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX): If no key is installed or you have
cscript ospp.vbs /inpkey:Your-Product-Key-Here
Example:
cscript ospp.vbs /inpkey:N9J9Q-W7JMP-7D7VX-7F42V-7CB7G
(The above is a placeholder – use your own key.) This will show: