When I try to register Microsoft Exchange 2016 server I’m getting an error message that product key is invalid.

Solution:

I fixed it by adding this after /ecp   ?ExchClientVer=15.1

Set-ExchangeServer -Identity SERVER_NAME -ProductKey XXXXX-XXXXX-XXXXX-XXXXX-XXXXX