If you enter a key intended for one activation method into the wrong environment, you will get an "invalid" error.
Even after entering a valid key, the server might not reflect the "Licensed" status until critical background services are manually refreshed. How to Resolve the Error 1. Use Exchange Management Shell (PowerShell) exchange 2019 product key invalid
Then restart the Exchange services or reboot. If you enter a key intended for one