Error Code 0xc004f017 Office Activation [best] Direct
Run the command cscript ospp.vbs /dstatus (as in Method 2). If you see multiple "Last 5 characters of installed product key" entries, you have a conflict.
Computer Config → Admin Templates → Microsoft Office 2016 (Machine) → Licensing Settings → "Specify the KMS host" error code 0xc004f017 office activation
For enterprise environments where this error recurs: Run the command cscript ospp