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.
- GVLK (Generic Volume License Key) keys are all the same because Windows won’t fully activate unless it can reach out to a KMS (Key Management Service) host.
- MAK (Multiple Activation Key) are semi unique product keys. When an organization is issued a MAK, the same product key can be used a limited number of times before it stops working.
- Generic Retail Keys (sometimes called RTM Keys) are the same product key and are typically used to upgrade from one Windows edition to the next. After the upgrade, a valid product key is needed.
- AVMA (Automatic Virtual Machine Activation) product keys are all the same because they only activate when running as a guest on a Hyper-V host running an activated version of Windows Server Datacenter.
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.
- If you use
/ipkwith a product key, it installs or replaces the current product key.
































