The error code 0xC004F017 essentially means the Software Licensing Service thinks the license you're trying to use just isn't there
When Office activates, it writes specific .xrm-ms license files to: error code 0xc004f017 office activation
or
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. The error code 0xC004F017 essentially means the Software
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. error code 0xc004f017 office activation