slmgr /ipk x-x-x-x-x
Installing the product key can also be said to replace the existing key, which is the 5 × 5 serial number.

slmgr /skms x.x.x.x
Set the KMS server IP address and port.

slmgr /ato
Try to activate Windows online. If I understand correctly, ato is the abbreviation of attempt online.

In the above KMS part, let's learn other main commands.

slmgr.vbs -dlv Display detailed activation information, including: system version, activation ID, installation ID, part of product keys, license status, remaining Windows reset count, etc

slmgr.vbs -dli This command is actually a simplified version of the above command

slmgr.vbs -xpr This command is used to check the expiration date of the current license status. Similarly, we can use it to check whether Windows is permanently activated.

slmgr.vbs -cpky This command is to clear the product key information from the registry, which is a security measure. After clearing, the software that claims to read the product key cannot be read.

slmgr.vbs -ilc , import the OEM certificate, followed by the path of the OEM certificate.

slmgr.vbs -upk , uninstall the current product key. After restarting the computer, the system will return to the inactive state, and the key input and network activation interface will appear.

There are so many common commands. If you want more, please see the original instruction document on Microsoft's official website

http://technet.microsoft.com/en-us/library/ff793433.aspx