How to Activate Office 2013 via Command Prompt – Simple Guide
Why use the command line for activation?
Most users click the built‑in activation wizard, but the Command Prompt (CMD) gives you a bit more control. It works even when the graphical interface refuses to start, and it lets you automate the process across several machines. In short, CMD is a reliable back‑up when the usual route hits a snag.
What you need before you begin
First, make sure you have a legitimate product key for Office 2013. The key is a 25‑character string that looks like XXXXX‑XXXXX‑XXXXX‑XXXXX‑XXXXX. You’ll also need administrative privileges on the computer, because changing the activation state touches system files.
Open the Command Prompt as an administrator: press Win + X, choose “Command Prompt (Admin)” or “Windows PowerShell (Admin)”, and click “Yes” when prompted.
Step‑by‑step: Activate Office 2013 via CMD
1. Navigate to the Office folder. The exact path depends on whether you installed the 32‑bit or 64‑bit version. Type one of the following and press Enter:
- For 32‑bit on a 64‑bit Windows:
cd "C:\Program Files (x86)\Microsoft Office\Office15" - For 64‑bit Office:
cd "C:\Program Files\Microsoft Office\Office15"
2. Enter the product key. Run the following command, replacing YOUR-PRODUCT-KEY with your actual key:
cscript ospp.vbs /inpkey:YOUR-PRODUCT-KEYIf the key is accepted, you’ll see a “Successfully installed product key” message.
3. Force activation. Ask Office to contact Microsoft’s servers immediately:
cscript ospp.vbs /actThe output will tell you whether activation succeeded. A line reading “Product activation successful” means you’re done.
4. Confirm the status. Run this command to double‑check:
cscript ospp.vbs /dstatusLook for “LICENSE STATUS: ---LICENSED---”. If it shows “UNLICENSED”, repeat the previous steps or move on to troubleshooting.
Troubleshooting common errors
Error 0xC004F074 – KMS unavailable. This typically means the computer can’t reach a Key Management Service. Make sure you’re connected to the internet, or try the /act command again after a few minutes.
Error 0xC004C003 – Invalid product key. Double‑check the characters; the key is case‑insensitive but must be entered exactly as printed. If you copied it from an email, watch out for hidden spaces.
Activation server busy. Occasionally Microsoft’s servers are overloaded. Waiting ten minutes and re‑running /act usually clears the issue.
If none of these solutions work, you can reset the licensing information and start fresh:
cscript ospp.vbs /rearmAfter the rearm, repeat the activation steps from the beginning.
When to use the GUI instead
For most home users, the standard “Activate Product” button in any Office app is quicker. The CMD method shines in corporate environments where admins push the same key to dozens of computers via scripts, or when the GUI is corrupted and refuses to open.
FAQ
Can I activate Office 2013 without an internet connection?
Yes, by using a phone activation method. You’d run cscript ospp.vbs /act, note the displayed installation ID, call Microsoft’s support line, and then enter the supplied confirmation ID.
Do I need to run CMD as admin every time I reactivate?
Administrative rights are required the first time you install a product key. Subsequent checks with /dstatus can be done without admin, but re‑activating after a hardware change usually needs admin again.
Is it safe to share my product key with a colleague for activation?
Product keys are licensed per user or per device, depending on your agreement. Sharing a key outside the terms of your license can violate Microsoft’s policy and may trigger deactivation later.
What if I have both Office 2010 and Office 2013 on the same PC?
Each version stores its activation data in separate folders (Office14 for 2010, Office15 for 2013). Run the CMD commands in the correct directory to avoid confusing the two products.