The error code 0xC004F017 indicates that the " Software Licensing Service reported that the license is not installed

For 64-bit Office: cd C:\Program Files\Microsoft Office\Office16

Reinstall Windows or Office as a last resort

Run the Activation Troubleshooter (Windows)

Corrupted or missing license files, network connection issues preventing server contact, invalid product keys, or conflicting remnants of previous Office installations. Environment:

Server Issues: Your computer cannot reach the Key Management Service (KMS) host. 1. Remove "Ghost" Office Licenses