SIGN IN YOUR ACCOUNT TO HAVE ACCESS TO DIFFERENT FEATURES

FORGOT YOUR PASSWORD?

FORGOT YOUR DETAILS?

AAH, WAIT, I REMEMBER NOW!
IF ANY QUESTIONS? CALL: (+994 77) 5222100 E-MAIL: OFFICE@RAM5N.COM

RAM5N, Inc.

  • HOME
  • SERVICES
  • OUR COMPANY
  • PORTFOLIO
  • WORK HISTORY
  • SUBSIDIARIES
    • weIslam
    • weUniverse
    • weServer
    • MUSIC
    • weAds
    • wePhotography
    • Folk Medicine and Health
  • WENEWS
    • weNews (All News)
  • CONTACT
    • Write to Us
  • MY CART
    No products in cart.
 September 29, 2025
1
Monday, 03 July 2017 / Published in weScience, weTechnology

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

Views: 1,308

Windows activation is designed to be as foolproof as possible, so Microsoft’s graphical tools keep it simple. If you want to do something more advanced like remove a product key, force an online activation, or extend the activation timer, you’ll need Slmgr.vbs.

This command line tool is included with Windows, and provides options unavailable in the standard activation interface provided on the Update & Security > Activation screen in the Settings app.

First: Open an Administrator Command Prompt Window

RELATED: How Does Windows Activation Work?

To use this tool, you’ll want to launch a Command Prompt with Administrator access. To do so on Windows 8 or 10, either right-click the Start button or press Windows+X. Click the “Command Prompt (Admin)” option in the menu that appears. On Windows 7, search the Start menu for “Command Prompt,” right-click it, and select “Run as Administrator.”

Note: If you see PowerShell instead of Command Prompt on the Power Users menu, that’s a switch that came about with the Creators Update for Windows 10. It’s very easy to switch back to showing the Command Prompt on the Power Users menu if you want, or you can give PowerShell a try. You can do pretty much everything in PowerShell that you can do in Command Prompt, plus a lot of other useful things.

View Activation, License, and Expiration Date Information

To display very basic license and activation information about the current system, run the following command. This command tells you the edition of Windows, part of the product key so you can identify it, and whether the system is activated.

slmgr.vbs /dli

To display more detailed license information–including the activation ID, installation ID, and other details–run the following command:

slmgr.vbs /dlv

View the License Expiration Date

To display the expiration date of the current license, run the following command. This is only useful for Windows system activated from an organization’s KMS server, as retail licenses and multiple activation keys result in a perpetual license that won’t expire. If you haven’t provided a product key at all, it’ll give you an error message.

slmgr.vbs /xpr

Uninstall the Product Key

You can remove the product key from your current Windows system with Slmgr. After you run the below command and restart your computer, the Windows system won’t have a product key and will be in an unactivated, unlicensed state.

If you installed Windows from a retail license and would like to use that license on another computer, this allows you to remove the license. It could also be useful if you’re giving that computer away to someone else. However, most Windows licenses are tied to the computer they came with–unless you purchased a boxed copy.

To remove uninstall the current product key, run the following command and then restart your computer:

slmgr.vbs /upk

Windows also stores the product key in the registry, as it’s sometimes necessary for the key to be in the registry when setting up the computer. If you’ve uninstalled the product key, you should run the below command to ensure it’s removed from the registry as well. This will ensure people who use the computer in the future can’t grab the product key.

Running this command alone won’t uninstall your product key. It’ll remove it from the registry so programs can’t access it from there, but your Windows system will remain licensed unless you run the above command to actually uninstall the product key. This option is really designed to prevent the key from being stolen by malware, if malware running on the current system gains access to the registry.

slmgr.vbs /cpky

Set or Change the Product Key

You can use slmgr.vbs to enter a new product key. If the Windows system already has a product key, using the below command will silently replace the old product key with the one you provide.

Run the following command to replace the product key, replacing #####-#####-#####-#####-##### with the product key. The command will check the product key you enter to ensure it’s valid before using it. Microsoft advises you restart the computer after running this command.

You can also change your product key from the Activation screen in the Settings app, but this command lets you do it from the command line.

slmgr.vbs /ipk #####-#####-#####-#####-#####

Activate Windows Online

To force Windows to attempt an online activation, run the following command. If you’re using a retail edition of Windows, this will force Windows to attempt online activation with Microsoft’s servers. If the system is set up to use a KMS activation server, it will instead attempt activation with the KMS server on the local network. This command can be useful if Windows didn’t activate due to a connection or server problem and you want to force it to retry.

slmgr.vbs /ato

Activate Windows Offline

Slmgr also allows you to perform an offline activation. To get an installation ID for offline activation, run the following command:

slmgr.vbs /dti

You’ll now need to get a a confirmation ID you can use to activate the system over the phone. Call the Microsoft Product Activation Center, provide the installation ID you received above, and you’ll be given an activation ID if everything checks out. This allows you to activate Windows systems without Internet connections.

To enter the confirmation ID you’ve received for offline activation, run the following command. Replace “ACTIVATIONID” with the activation ID you’ve received.

slmgr.vbs /atp ACTIVATIONID

Once you’re done, you can use the slmgr.vbs /dli or slmgr.vbs /dlv commands to confirm you’re activated.

This can generally be done from the Activation screen in the Settings app if your PC isn’t activated–you don’t have to use the command if you’d rather use the graphical interface.

Extend the Activation Timer

RELATED: You Don’t Need a Product Key to Install and Use Windows 10

Some Windows systems provide a limited time where you can use them as free trials before entering a product key. For example, Windows 7 offers a 30-day trial period before it begins complaining at you. To extend this trial period and reset it back to 30 days remaining, you can use the following command.As Microsoft’s documentation puts it, this command “resets the activation timers.”

This command can only be used several times, so you can’t indefinitely extend the trial. The number of time it can be used depends on the “rearm count,” which you can view using the slmgr.vbs /dlv command. It seems different on different versions of Windows–it was three times on Windows 7, and it seems to be five times on Windows Server 2008 R2.

This no longer seems to work on Windows 10, which is very lenient if you don’t provide it a product key anyway. This option still works on older versions of Windows and may continue to work on other editions of Windows, such as Windows Server, in the future.

slmgr.vbs /rearm

Slmgr.vbs Can Perform Actions on Remote Computers, Too

Slmgr normally performs the actions you specify on the current computer. However, you can also remotely administer computers on your network if you have access to them. For example, the first command below applies to the current computer, while the second one will be run on a remote computer. You’ll just need the computer’s name, username, and password.

slmgr.vbs /option
slmgr.vbs computername username password /option

The Slmgr.vbs command has other options, which are useful for dealing with KMS activation and token-based activation. Consult Microsoft’s Slmgr.vbs documentation for more details.


Source: howtogeek.com

For permission content from this site must be hyperlinked when used!

If you have found a spelling error, please, notify us by selecting that text and pressing Ctrl+Enter.

Share this:

  • Facebook
  • X
  • Tweet
Tagged under: Activate Windows KMS, Windows 10, Windows 7, Windows 8, Windows OS Tricks, Windows Vista, Windows XP

What you can read next

Antarktidada sirli orqanizmlər aşkarlandı [AZ]
Acı bibərin uzunömürlülüyə təsiri aşkar edilib [AZ]
All Secret Codes of Samsung Galaxy S7 and Galaxy S7 Edge

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Backlink nədir - What is Backlink

    Backlink nədir? [AZ]

    Backlink – bir veb saytdan digərinə verilmiş li...
  • What is Framework - Freymvork nədir

    Framework nədir? [AZ]

    Freymvork (ing. framework) – proqram sisteminin...
  • Alimlər suyun yeni halını kəşf ediblər - ram5n.com

    Alimlər suyun yeni halını kəşf ediblər [AZ]

    Amerikalı tədqiqatçıların fikrincə, həddən artı...
  • Rare celestial event ‘planet parade’ to occur after 37 years

    A series of rare and unique celestial events wi...
  • “Yay Günəş duruşu” mövzusunda elmi-praktiki seminar keçirilib [AZ]

    AMEA-nın Naxçıvan Bölməsinin Batabat Astrofizik...

Recent Comments

  • Ss on Saytların bloklanması ilə bağlı RƏSMİ AÇIQLAMA [AZ]
  • Rehman Farooq on How to Optimize SSD for Faster Performance (Windows Tweaks)
  • evernessince on How to Optimize SSD for Faster Performance (Windows Tweaks)
  • Wilbur on How to Optimize SSD for Faster Performance (Windows Tweaks)
  • Farouk on Best way to fix format USB before use

Archives

  • March 2022
  • February 2022
  • September 2020
  • July 2020
  • June 2020
  • April 2020
  • March 2020
  • January 2020
  • December 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • August 2015
  • June 2015
  • April 2015
  • January 2015
  • December 2013
  • November 2012
  • July 2008

Categories

Calendar


« September 2025 »
Mo Tu We Th Fr Sa Su
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          

Calendar by Kieran O'Shea

Categories

  • Android
  • Apple Inc
  • Azerbaijan
  • Azerbaijani Cellular Network
  • Catastrophes
  • Coding
  • CoronaVirus Epidemic
  • Faceebook Inc
  • Financial
  • Folk Medicine
  • Google
  • Holidays
  • How-Tos
  • Mobile
  • Networking
  • News of Azerbaijan
  • Paranormal Events
  • PC & Notebook
  • Posts
  • Programming
  • Psychology
  • Samsung
  • Social Network
  • Technology
  • U.S.A
  • Uncategorized
  • weCommunication
  • weDesign
  • weHealth
  • weIslam
  • weNews
  • wePhotography
  • weScience
  • weSoftware
  • weTechnology
  • weUniverse
  • World

Recent Post

  • Backlink nədir - What is Backlink

    Backlink nədir? [AZ]

  • What is Framework - Freymvork nədir

    Framework nədir? [AZ]

  • Alimlər suyun yeni halını kəşf ediblər - ram5n.com

    Alimlər suyun yeni halını kəşf ediblər [AZ]

  • Rare celestial event ‘planet parade’ to occur after 37 years

  • “Yay Günəş duruşu” mövzusunda elmi-praktiki seminar keçirilib [AZ]

  • Bu gecə Azərbaycana yay gəlib [AZ]

  • Ölkədə hərəkət məhdudiyyətlərinin tətbiqi ilə bağlı Qərar qəbul edilib [AZ]

  • Koronavirusun Azərbaycan ərazisində geniş yayılmasının qarşısının alınmasına dair əlavə tədbirlər müəyyənləşdirilib [AZ]

  • Azərbaycanda xüsusi karantin rejimi gücləndirilib [AZ]

  • Install this emergency update for Windows 10 [US]

Top Comments

  • Ss on Saytların bloklanması ilə bağlı RƏSMİ AÇIQLAMA [AZ]
  • Rehman Farooq on How to Optimize SSD for Faster Performance (Windows Tweaks)
  • evernessince on How to Optimize SSD for Faster Performance (Windows Tweaks)
  • Wilbur on How to Optimize SSD for Faster Performance (Windows Tweaks)
  • Farouk on Best way to fix format USB before use

Subscribe

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 2 other subscribers
social sharing
  • RAMINSERVER
  • SUPPORT
  • ABOUT US
RAM5N, Inc.

© 2008 - 2023 | All Rights Reserved. Site by 

TOP
 

Loading Comments...
 

    Spelling error report

    The following text will be sent to our editors:

    Send Cancel