S SoftwareKeyMV
Brands
Sign in Create account

How to Activate or check status of the licence by CMD (win 7, 8, 10,11)

55 views ยท updated 2026-11-30 ยท published 2022-06-03 ยท by Hasarinda Manjula ยท Activation Guides Reading time: 4 min English

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.

Thanks for your feedback! ๐Ÿ™Œ

Read more