slmgr.vbs

slmgr.vbs

slmgr.vbs is the Windows Software Licensing Management Tool, a Microsoft Visual Basic script that comes with Windows and is a core part of the Windows activation system. The full path is C:\Windows\System32\slmgr.vbs.

You can use slmgr.vbs to troubleshoot, activate, change, and uninstall your Windows activation.

In this post, I will show you how to use slmgr.vbs.

Product Key

Windows commonly uses product keys to activate. A Windows product key consists of 5 blocks of 5 alphanumeric characters, totaling 25 characters.

Typically, the following characters are never in a product key: A, E, I, L, O, S, U, Z, 0, 1.

Most product keys are unique, but that isn’t always the case.

Application ID

An Application ID is a unique ID for each core component that can be activated with slmgr.vbs.

For example, the Application ID 55c92734-d682-4d71-983e-d6ec3f16059f is for Windows, and 0ff1ce15-a989-479d-af46-f275c6370663 is for Office.

Activation ID

An Activation ID is a unique ID for each component that can be activated. There are a lot of them.

Confirmation ID

A Confirmation ID is typically only provided by Microsoft when activating offline.

Output

By default, slmgr.vbs will output to a new window.

However, if you call slmgr.vbs with cscript instead, you can output everything to the command line.

For example

cscript c:\Windows\System32\slmgr.vbs /ato

Options

ipk

Install Product Key.

ato

Activate Windows.

dli

Display License Information.

dlv

Display Detailed License Information. It could also be Display License Verbose. This will display Activation IDs and Application IDs.

xpr

Display the activation expiry.

cpky

Clear the Product Key from the registry. Needs to be run as an administrator.

ilc

Install License file. Needs to be run as an administrator.

rilc

Reinstall system license files. Needs to be run as an administrator.

rearm

Resets the licensing status. Needs to be run as an administrator.

rearm-app

Resets the licensing status for a specific application. Needs to be run as an administrator.

rearm-sku

Resets the licensing status for a specific component. Needs to be run as an administrator.

upk

Uninstall Product Key. Needs to be run as an administrator.

dti

Display Installation ID for offline activation.

atp

Activate a product with a Confirmation ID.

Summary

slmgr.vbs is a very powerful tool for Windows activation. I’ve used it many times to activate and troubleshoot activation issues. There are even more options for slmgr.vbs, but they are specific to KMS and Active Directory-based activation.

For more information about slmgr.vbs here is the Microsoft documentation.

Exit mobile version