(The /ato command will likely fail without a real KMS server, but it will register the key.)
While Microsoft encourages users to purchase a product key for activation, there are scenarios where users seek alternatives. Here are some methods that have been used: How to activate Windows Server without product key