Download the directly from the official Microsoft website. Install and launch the application.
Old, expired, or conflicting product keys silently stored on your PC often cause error 0xc004f017. You can clear them manually using the visual basic script ( ospp.vbs ) provided by Microsoft. 1. Open Command Prompt as Administrator Press the , type cmd . Right-click Command Prompt and select Run as administrator . 2. Navigate to your Office Folder
Few things are as frustrating as opening Microsoft Word or Excel only to be greeted by an activation error. For countless users, that moment arrives with error code —a sudden roadblock that transforms a fully functional Office suite into a limited, read‑only version.
Go to > Account and attempt the activation process again. 2. Remove Conflicting Product Keys via Command Prompt
💡 This error often appears with KMS or volume licensing conflicts . If you’re on a personal device, ensure you’re not accidentally using a work/school volume license. error code 0xc004f017 office activation
Input the following command to display your current activation status and the last 5 characters of your installed product keys: cscript ospp.vbs /dstatus
This is the most effective fix.
cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /unpkey:XXXXX (Replace XXXXX with your 5 characters) . Restart your PC and attempt to activate Office again. 3. Verify Product and Installer Compatibility
Before changing system files, confirm that your installer matches your purchase. Open any Office application (e.g., Word or Excel). Download the directly from the official Microsoft website
Run the command cscript ospp.vbs /dstatus (as in Method 2). If you see multiple "Last 5 characters of installed product key" entries, you have a conflict.
| Symptom | Likely Cause | Best Initial Fix | | :--- | :--- | :--- | | Error appears after upgrading Windows | Old Office trial license conflict | Run SaRA and complete clean reinstall | | Error when using KMS activation script | Retail license found instead of KMS | Use ospp.vbs to remove retail keys | | New PC with pre‑installed Office | OEM digital‑attach license | Fully uninstall pre‑installed Office | | Error persists after normal uninstall | Leftover registry or licensing service entries | Delete SppExtComObj.exe reg key and rearm |
Navigate to your Office folder (usually cd C:\Program Files\Microsoft Office\Office16 ). Run: cscript ospp.vbs /dstatus to see current license keys.
If this resolves the error, you can safely delete tokens.old . If not, restore it by deleting the new tokens.dat and renaming tokens.old back. You can clear them manually using the visual
Log into your personal or corporate Microsoft Account page via a web browser. Ensure that your subscription is active, has not expired, and that your Windows system time, date, and region settings match your billing profile. Temporarily Disable Security Software
is a common Microsoft Office activation issue that indicates the Software Licensing Service reported that the license is not installed . This problem typically arises when the activation wizard fails to recognize a valid product certificate, often due to overlapping software versions, residual registry keys, or conflicts with Key Management Service (KMS) volume licensing environments.
Before attempting to fix the error, it is helpful to know what causes it: