The error code 0xC004F017 essentially means the Software Licensing Service thinks the license you're trying to use just isn't there

Remove cached credentials and sign in again

Type cscript ospp.vbs /unpkey:XXXXX (replace XXXXX with your 5 characters). Restart Office and try activating again. 2. Use the Office Activation Troubleshooter

Repeat for all keys listed.

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.

  • Link Office licenses to a Microsoft account when possible for easier reactivation.
  • Keep purchase records and product keys in a secure place.
  • Avoid registry cleaners and aggressive system cleaners that can remove licensing files.
  • Use the edition that matches your key (retail vs. volume).
  • Regularly back up system restore points before major changes.
  • To remove that specific key, type: cscript ospp.vbs /unpkey:XXXXX (Replace XXXXX with the last 5 characters you noted in the previous step).
  • Once removed, try activating Office again.
  • Manual Key Removal (Advanced)If the software still thinks a different license is present, you can manually clear the old keys: Open Command Prompt as Administrator.