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:
cscript ospp.vbs /dstatus
This shows installed product key details (last 5 characters of the key) and activation status.
cscript ospp.vbs /act
You should see:
Product activation successful como ativar o office 2013 pelo cmd
Use the generic Office 2013 KMS client key (example for Pro Plus):
YC7DK-G2NP3-2QQC3-J6H88-GVGXT
Then you’ll set a KMS server address (step 6).
Copy and paste the following sequence (replace the key and path as needed):
REM Step 1: Run CMD as Administrator REM Step 2: Change directory (adjust path if necessary) cd C:\Program Files (x86)\Microsoft Office\Office15REM Step 3: Install your product key cscript ospp.vbs /inpkey:YOUR-25-CHAR-KEY-HERE Activating Microsoft Office 2013 using the Command Prompt
REM Step 4: (For KMS Volume only) Set KMS Server cscript ospp.vbs /sethst:kms.yourserver.com
REM Step 5: Activate cscript ospp.vbs /act
REM Step 6: Confirm activation cscript ospp.vbs /dstatusMicrosoft Office 2013 : Make sure you have
Solution: Your installed key does not match the edition you have installed (e.g., trying to activate Office Professional Plus with a Standard key). Uninstall Office and reinstall the correct edition.