Use slmgr to activate Windows


Software: Windows 7, 8 & 10 | Last modified on 2018-06-18


When traditional means of activating Windows aren't working, you can use the slmgr command to activate Windows with the Command Prompt.

[Step 1] Finding the product key


  1. If you're already in possession of a product key, continue to Step 2.
  2. Open the Command Prompt (Admin) or PowerShell (Admin).
  3. Execute wmic path softwarelicensingservice get OA3xOriginalProductKey
  4. If the command returns an error or nothing, continue with the next command.
  5. Execute powershell "(Get-WmiObject -query ‘select * from SoftwareLicensingService’).OA3xOriginalProductKey
  6. Continue to step 2.

[Step 2] Using the slmgr commands


  1. Open the Command Prompt (Admin) or PowerShell (Admin).
  2. The following commands are available for slmgr:

    • slmgr -dli will display the current activation & licensing information of the device.
    • slmgr -xpr will display the current expiration date of the license installed on the device.
    • slmgr -rilc will re-install the system license files.
    • slmgr -upk will uninstall the product key that is currently being used by the device.
    • slmgr -ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx (replace xxxxx with your own product key) will install the product key on the device.
    • slmgr -ato will activate the license that is currently installed on the device.
    • slmgr -rearm will reset the license that is currently installed on the device.

  3. If you receive an error stating that 'slmgr is not a recognized as an internal or external command', execute cd windows\system32 before attempting to use the above slmgr commands.
  4. To uninstall your current product key and reinstall another product key, follow these steps:

    1. Execute slmgr -upk
    2. Execute slmgr -ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx (replace xxxxx with your product key)
    3. Execute slmgr -ato


Search
Support
Can't find the answer you're looking for? Click here to submit a ticket.