Microsoft provides a dedicated tool called the Microsoft Support and Recovery Assistant (SaRA) . Download and run the tool.
Make sure the product key matches exactly what’s installed. You can’t use a standalone key on a volume license version (or vice versa). Uninstall the wrong edition and reinstall the correct one from your Microsoft account. error code 0xc004f017 office activation
Check your license type and account