====== Key Management Server – slmgr command reference ====== ---- ====Slmgr Commands==== **slmgr** [//MachineName// [//username//[//password//]]] [//option//] ^ Slmgr Command Options ^^ ^ Item ^ Explanation ^ | //MachineName// |The machine to administer. Defaults to the local machine if omitted. | | //username// |The username of an administrator account on the remote machine. | | //password// |The password for username. | | **/ato** |Activate Windows license and product key against Microsoft’s server. | | **/atp** //Confirmation_ID// |Activate the product with a user-provided //Confirmation_ID//. | | **/cdns** |Disable DNS publishing by the KMS host. | | **/ckhc** |Disable KMS host caching. | | **/ckms** |Clear the name of KMS server used to default and port to default. | | **/cpky** |Delete the Windows product key from Windows Registry. | | **/cpri** |Set the KMS priority to low. | | **/dli** |Display the current license information with activation status and partial product key. | | **/dlv** |Display additional license information. Similar to /dli but more detailed. | | **/dti** |Display Installation ID for offline activation. | | **/ipk** //key// |Change the Windows product key. Replaces the current product key if present. | | **/ilc** //file// |Install a license file. | | **/lil** |List installed token-based activation issuance licenses. | | **/ril** |Remove installed token-based activation issuance license. | | **/rilc** |Reinstall system license files. | | **/rearm** |Reset the evaluation period/licensing status and activation state of the computer. Use **/rearm-app** to specify an app, or **/rearm-sku** for a specific sku. | | **/skms** |Set the Volume Licensing KMS server and/or the port used for KMS activation. | | **/skhc** |Enable KMS host caching (enabled by default). This blocks the use of DNS priority and weight after the initial discovery of a working KMS host. | | **/sai** //interval// |Sets the //interval// in minutes for unactivated clients to attempt KMS connection. | | **/spri** |Set the KMS priority to normal (default). | | **/sprt** //port// |Set the port on which the KMS host listens for client activation requests (default TCP port is 1688). | | **/sdns** |Enable DNS publishing by the KMS host (default). | | **/upk** |Uninstall the currently installed Windows product key and return the license status back to a trial state. | | **/xpr** |Show the expiry date of the current license or indicate whether activation is permanent. | //MachineName// can’t be used across platforms. For example, you can’t manage Windows activation on a Windows 7 computer from a Windows Vista computer.