Error Code 0xc004f017 Office Activation -
If the above fails, the token store file (tokens.dat) may be corrupted or contain a conflicting "dogfood" (beta) license.
Warning: Do this carefully. Deleting the wrong file can break other Microsoft software.
tokens.dat. Rename it to tokens.old (do not delete it immediately).tokens.dat).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.
How to Fix "This product key has already been used" or License Activation Errors
Error code 0xc004f017 typically appears when trying to activate Microsoft Office (2013, 2016, 2019, or 365). The error message usually states:
"This product key has already been used. Please enter a different product key."
This error generally occurs for one of two reasons:
Here are the steps to resolve the issue, ordered from the most common fix to the more advanced solutions.
Post 1 (Main):
🚫 Office activation error 0xc004f017?
This means your installed Office version doesn’t match your license.
🔧 Quick fix:
1️⃣ Wipe Office credentials from Credential Manager
2️⃣ Uninstall Office
3️⃣ Reinstall from your Microsoft account dashboard
Full guide 👇 [link to article or next tweet]
#OfficeError #MicrosoftHelp
Post 2 (Follow-up):
If 0xc004f017 appears after a Windows reinstall:
➡️ Your old license might be a volume license (KMS)
➡️ Switch to a retail or Microsoft 365 edition
➡️ Or contact your IT admin
#TechTip #OfficeActivation
Don’t let the technical name intimidate you. Error code 0xc004f017 boils down to: "Your computer has the wrong license type for this Office app."
By following this guide, you should reclaim full access to Microsoft Office within 15 to 20 minutes, without losing any documents or settings. The error 0xc004f017 is annoying but not fatal—and now you have the definitive roadmap to resolve it.
Updated for 2026. Still seeing issues? Check Microsoft’s Office 365 Health Dashboard for any ongoing activation service degradation.
Error code 0xC004F017 indicates that the Software Licensing Service cannot find the required license for your Microsoft Office product. This often occurs due to license conflicts, expired subscriptions, or corrupted activation files. Quick Fixes to Resolve Error 0xC004F017
Ошибка 0xc004f017 при активации Office. Решаем вместе.
When you encounter 0xc004f017, the full error text typically reads:
"The Software Licensing Service reported that the product SKU is not found."
or
"The license binding data token is invalid." error code 0xc004f017 office activation
If none of these solutions work and you are certain the key has not been used on another machine, contact Microsoft Support directly, as the key itself may be blocked or defective.
Fixing Office Activation Error 0xc004f017 Error code 0xc004f017 typically appears when you try to activate a volume license version of Microsoft Office (like Office 2016, 2019, or 2021) on a machine that doesn't have the correct licensing certificate or is conflicting with a retail installation. Why Error 0xc004f017 Happens
Licensing Mismatch: You are using a Volume License (VL) key on a Retail version of Office.
Corrupt Tokens: The activation tokens file in your system is damaged.
Multiple Versions: Older "leftover" Office files are confusing the activation wizard.
Server Issues: Your computer cannot reach the Key Management Service (KMS) host. 1. Remove "Ghost" Office Licenses
The most common fix is removing old product keys stored in your system registry. Open Command Prompt as Administrator.
Navigate to your Office folder (usually C:\Program Files\Microsoft Office\Office16). Type cscript ospp.vbs /dstatus and press Enter.
Look for the Last 5 characters of the installed product key.
Type cscript ospp.vbs /unpkey:XXXXX (replace XXXXX with your 5 characters). Restart Office and try activating again. 2. Use the Office Activation Troubleshooter
Microsoft provides a dedicated tool to repair licensing issues.
Download the Microsoft Support and Recovery Assistant (SaRA).
Select Office and then choose I've installed Office, but I can't activate it.
Follow the prompts to let the tool reset your licensing state. 3. Check for Retail vs. Volume Conflicts
If you downloaded Office from a "Retail" link but are using a "Volume" key (or vice versa), the software will reject the key.
Volume Versions: Usually provided by employers or schools via a private portal.
Retail Versions: Purchased from the Microsoft Store or a physical box.
Fix: Uninstall the current version completely and ensure you download the installer that matches your specific license type. 4. Reset the Office Software Protection Platform
Sometimes the background service responsible for checking licenses gets stuck. Close all Office apps. Open Services.msc from the Start menu. Locate Software Protection. Right-click it and select Restart. 5. Clean Install Using the Setup Prod Tool
If the error persists, a standard uninstall isn't enough. You need to wipe the registry entries.
Use the Office Uninstall Support Tool (Option 2 on Microsoft’s support site).
This removes deep-rooted folders in ProgramData and AppData that cause 0xc004f017. Reinstall Office after a full system reboot. If you'd like to narrow this down, tell me: Did you get this code on a work laptop or a personal PC? If the above fails, the token store file ( tokens
Are you using a subscription (Microsoft 365) or a one-time purchase (Office 2021/2019)?
Was there a different version of Office on this computer before?
I can give you the exact command lines for your specific version if you provide those details.
The error code 0xC004F017 indicates that the Software Licensing Service reported that the license is not installed
. This typically occurs during Microsoft Office activation (specifically versions like 2013, 2016, 2019, or 2021) when the system cannot find a valid license to associate with the installed product key. Microsoft Learn Error Summary
"The Software Licensing Service reported that the license is not installed." Common Causes:
Corrupted or missing license files, network connection issues preventing server contact, invalid product keys, or conflicting remnants of previous Office installations. Environment:
Often seen in volume licensing (KMS) or when transitioning between different Office versions (e.g., from a trial to a paid version). Microsoft Learn
Error code 0xC004F017 in Office usually indicates a licensing service failure due to version conflicts, often arising from pre-installed or multiple Office versions, according to university technical resources. Resolving this issue typically involves uninstalling conflicting versions, running an online repair, and ensuring the correct Microsoft account is active. For a complete walkthrough on fixing sign-in and activation conflicts, see Integricom 國立清華大學 KMS instructions and Trouble-Shooting
The error code 0xC004F017 in Microsoft Office indicates that the Software Licensing Service cannot find a valid license installed on your system. This often happens when there are remnants of a trial version (Grace period) conflicting with your actual license or if you are using a Volume License (KMS) without the proper host connection. 🛠️ Immediate Fix: Run OSPPREARM
The most common solution for standalone "Activation Failed" errors is to reset the licensing timer. Close all open Office applications.
Open File Explorer and navigate to: C:\Program Files\Microsoft Office\Office16 (or Program Files (x86) depending on your installation). Locate the file OSPPREARM.EXE. Right-click it and select Run as Administrator. Repeat this process 3 times. Open Word or Excel to see if the message has cleared. 💻 Manual License Cleanup (Advanced)
If the above fails, you may have a "stale" license key blocking the new one. You can remove it manually via the Microsoft Command Line. 1. Identify the License Open Command Prompt as Administrator.
Type the following command (adjusting the path if your Office version is different):cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus Look for the "Last 5 characters of installed product key". 2. Remove the Stale Key
Type the following command using those 5 characters:cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /unpkey:XXXXX (replace XXXXX with your key).
Restart Office and sign in again to re-link your legitimate license.
Error code 0xC004F017 usually indicates that the Software Licensing Service cannot find a valid license for the Office product you're trying to activate. This often happens with volume-licensed versions (like KMS) if the correct "license" or "client key" wasn't properly installed before activation was attempted. Common Fixes for Error 0xC004F017
The error code 0xC004F017 indicates that the " Software Licensing Service reported that the license is not installed
". This typically happens when there is a mismatch between the installed Office version (e.g., Retail) and the activation method being used (e.g., KMS/Volume licensing). Common Solutions Remove Conflicting Licenses
: Often, old trial versions or expired license keys interfere with new ones. Command Prompt as Administrator. Navigate to your Office folder (usually cd "C:\Program Files\Microsoft Office\Office16" cscript ospp.vbs /dstatus to see installed keys. If you see an old or incorrect key, use cscript ospp.vbs /unpkey:XXXXX (replace XXXXX with the last 5 characters of the key). Check Version Compatibility : Ensure you are not trying to activate a (Click-to-Run) version using a Volume License (KMS) key, as these are incompatible without conversion. Run a Repair
: Use the built-in repair tool to fix underlying licensing service issues. Control Panel Programs and Features Select your Microsoft Office product and click Quick Repair Online Repair Verify System Date/Time
: Incorrect time settings can block communication with activation servers. Check for Trial Versions You will see a file named tokens
: Pre-installed "Campus" or "Trial" versions of Office on new PCs can cause this error. Uninstall them completely before installing your licensed version.
If you are using a managed network (like a school or office), contact your IT department, as this error often relates to the KMS (Key Management Service)
host not being reachable or configured correctly for your specific machine. Microsoft Learn
The Microsoft Office activation error code 0xC004F017 indicates that "The Software Licensing Service reported that the license is not installed". This typically occurs during Volume Activation
(KMS) when the system cannot find a valid license for the specific Office product it is trying to activate. Microsoft Learn Understanding the Error Root Cause
: The error commonly appears when there is a mismatch between the installed Office version and the product key, or when a "Grace" (trial) period license is targeted instead of the full volume license.
: It is frequently seen in enterprise environments using Key Management Service (KMS) or environments with multiple Office versions installed (e.g., a trial version alongside a campus/volume version). Microsoft Learn Recommended Solutions Based on technical documentation from Microsoft Learn
and other troubleshooting resources, you can resolve this error using these methods: Remove Conflicting Licenses
script to uninstall existing trial or incorrect product keys before attempting to activate the correct one. Clean Reinstallation
: Uninstall any earlier or trial versions of Office completely, download the authorized "campus" or volume version, and then reactivate. KMS Troubleshooting Ensure the Office KMS Host Activation diagnostic tool is used to verify the server configuration. Verify the computer is on the correct VOLUME_KMSCLIENT channel by running slmgr -dlv in the Command Prompt. Account Unlocking (Specific to Office 2019)
: In some virtualised environments, this error may require signing into Office.com
to unlock the associated account via two-factor authentication (2FA) before activation can succeed. Microsoft Learn Diagnostic Commands
You can run these commands in an Administrative Command Prompt to investigate the license status:
License Conflicts: A pre-installed trial version of Office (often Office 365/Microsoft 365) is still present on the system and conflicting with the volume-licensed version you are trying to activate.
Missing Key: The system cannot find a valid KMS client key for the specific edition of Office installed.
Ghost Licenses: Residual "Grace" period license files from previous installations remain in the registry. Resolution Steps 1. Identify and Remove Residual Keys
You must clear any existing trial or "Grace" keys that are causing the error.
進行校園授權office軟體之kms認證出現0xC004F017錯誤碼
Manually Activate Office via Command Prompt (Windows):
Check for Software Updates: Ensure your Office and Windows are up to date.
SLUI Command:

