Activating Microsoft Office 2013 using the Command Prompt (CMD) involves using the Office Software Protection Service (OSPSvc) and entering a valid product key. Before proceeding, ensure you have the following:
The steps to activate Office 2013 via CMD are straightforward, but you need to run the commands as an administrator. Here's how to do it:
If you have a Volume License (VL) copy of Office 2013 (commonly used in businesses and schools), it needs to connect to a Key Management Service (KMS) server. If you are using a Retail key, skip to Step 6. como ativar o office 2013 pelo cmd
To set a KMS server address (replace kms.yourserver.com with a real KMS host or a public generic one—use at your own risk):
cscript ospp.vbs /sethst:kms.yourserver.com
For generic KMS activation (if you have a GVLK key), you can use: Activating Microsoft Office 2013 using the Command Prompt
cscript ospp.vbs /sethst:kms8.msguides.com
(Note: Public KMS servers are unreliable and against Microsoft ToS. Ideally, use your organization’s internal KMS.)
Then, set the KMS port (usually 1688):
cscript ospp.vbs /setprt:1688
Replace XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with your valid 25-character key:
cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Expected output: Product key installed successfully. Microsoft Office 2013 : Make sure you have
cd “C:\Program Files (x86)\Microsoft Office\Office15”