Use Slmgr to Change, Remove, or Extend Your Windows License

View Activation, License, and Expiration Date Information

  • Identify whether the system is activated
C:\Users\USER-PC>slmgr.vbs /dli
  • Display more detailed license information
C:\Users\USER-PC>slmgr.vbs /dlv


View the License Expiration Date

C:\Users\USER-PC>slmgr.vbs /xpr


Uninstall the Product Key

  • Uninstall the current product key
C:\Users\USER-PC>slmgr.vbs /upk
  • Remove product key from the registry
C:\Users\USER-PC>slmgr.vbs /cpky


Set or Change the Product Key

C:\Users\USER-PC>slmgr.vbs /ipk #####-#####-#####-#####-#####


Activate Windows Online

C:\Users\USER-PC>slmgr.vbs /ato


Activate Windows Offline

  • To get an installation ID for offline activation, run the following command.
C:\Users\USER-PC>slmgr.vbs /dti
  • Call the Microsoft Product Activation Center to get your activation ID.
  • Replace "ACTIVATIONID" with the activation ID you’ve received
C:\Users\USER-PC>slmgr.vbs /atp ACTIVATIONID


Extend the Activation Timer

C:\Users\USER-PC>slmgr.vbs /rearm


Perform Actions on Remote Computers

  • Applies to the current computer
C:\Users\USER-PC>slmgr.vbs /option
  • Run on a remote computer
C:\Users\USER-PC>slmgr.vbs computername username password /option