slmgr.vbs commands

This section describes how and when to use the slmgr.vbs commands. Open Command Prompt in elevated mode, and begin entering the commands according to requirements and circumstances.

  • Enter the following command to display the current license information:
slmgr.vbs -dli
  • Enter the following command to display the current license with more detailed information:
slmgr.vbs -dlv
  • Enter the following command to display the installation ID:
slmgr.vbs -dti
  • Enter the following command to display the expiration date of the current license:
slmgr.vbs -xpr
  • Enter the following command to enter a new product key or change the existing one:
slmgr.vbs -ipk <product key>
  • Enter the following command to activate the current product key:
slmgr.vbs -ato
  • Enter the following command to uninstall the currently installed product key:
slmgr.vbs -upk
  • Enter the following command to reset the evaluation period:
slmgr.vbs -rearm
  • Enter the following command to set the KMS server and the port:
slmgr.vbs -skms <activationservername:port>
  • Enter the following command to learn more about the slmgr.vbs options:
slmgr.vbs -?
You can learn more about the slmgr.vbs commands from http://blog.pemato.de/2017/01/24/windows-activation-kms-and-slmgr-exe/.