Complete Slmgr Commands Guide Check Verify Windows License (Essential Step-by-Step)
Welcome to the Complete Slmgr Commands Guide Check Verify Windows License. This tool, officially known as the Software Licensing Management Tool (`slmgr.vbs`), is a powerful, built-in Windows utility. It lets you dive deep into your operating system’s licensing details, far beyond what the standard Windows Settings can show.
Think of it as your direct line to understanding how your Windows copy is licensed, its activation status, and even how to fix common issues. Whether you’re a home user trying to reactivate after a hardware change or an IT professional managing multiple machines, mastering these commands is incredibly valuable. Let’s get started on unlocking your Windows licensing secrets.
Table of Contents
- 1. Getting Started: Opening Command Prompt as Administrator
- 2. Understanding Your Windows License Type: /dli and /dlv
- 3. Checking Your Windows Activation Status and Expiration: /xpr
- 4. Installing a New Windows Product Key: /ipk
- 5. Activating Windows Online: /ato
- 6. Removing and Clearing Your Windows Product Key: /upk and /cpky
- 7. Resetting the Windows Activation Grace Period: /rearm
- 8. Managing KMS Client Settings: /skms and /ckms
- 9. Activating Windows by Phone: /dti and /atp
- 10. Advanced Troubleshooting & Common Scenarios
- 11. Frequently Asked Questions
1. Getting Started: Opening Command Prompt as Administrator
Before we dive into the specific `slmgr` commands, it’s really important to know that these tools need special permissions to run. You must open Command Prompt or PowerShell with administrative privileges. Otherwise, Windows will politely tell you “Access Denied.”
Here’s how you can do that quickly. First, hit the Windows key + R to open the Run dialog. Type cmd (for Command Prompt) or powershell (for PowerShell) into the box. Now, instead of just hitting Enter, press Ctrl + Shift + Enter. This shortcut immediately elevates the application to administrator mode, giving you the necessary power to execute any `slmgr` command successfully.
2. Understanding Your Windows License Type: /dli and /dlv
Knowing your Windows license type is super helpful for figuring out what you can and can’t do with it. Are you rocking a transferable retail key, or is your license tied to your PC’s hardware? Let’s find out.
You have two main commands here: /dli for a quick overview and /dlv for all the juicy details. Running these will give you a pop-up window with your licensing information.
slmgr.vbs /dli: Display Basic License Information
This command offers a brief summary of your license. You’ll see things like your Windows edition, part of your product key (the last 5 characters), and the current activation status. It’s a good starting point to quickly check your setup.
slmgr.vbs /dli
slmgr.vbs /dlv: Display Detailed License Information
For a comprehensive report, /dlv is your go-to. This command provides a wealth of information, including the activation ID, installation ID, and crucially, your “Product Channel.” This channel tells you exactly what kind of license you’re running.
slmgr.vbs /dlv
When you see the “Product Channel,” here’s what the different types mean:
- RETAIL channel: This is a full, standard license that you typically buy from a store or online retailer. It comes with full transfer rights, meaning you can move it to a new computer or motherboard if needed.
- OEM_DM channel (Direct Mark) or OEM_SLP channel (System Locked Pre-installation): These licenses are factory-installed by computer manufacturers. They are usually tied to the specific hardware (motherboard) they came with and aren’t generally transferable to a different PC.
- VOLUME_KMSCLIENT channel (Key Management Service) or VOLUME_MAK channel (Multiple Activation Key): These are enterprise licenses, often used by large organizations, schools, or businesses. KMS keys require periodic connection to an organizational KMS server for re-activation. MAK keys have a limited number of activations and are sometimes sold illicitly.
3. Checking Your Windows Activation Status and Expiration: /xpr
Are you curious if your Windows is permanently activated or if there’s a countdown clock ticking somewhere? This command will give you the definitive answer. It’s particularly useful for those running volume licenses, which might have expiration dates.
To check this, simply use the /xpr command. You’ll get a clear message indicating your activation status. If you see a specific expiration date, it means your activation is temporary.
slmgr.vbs /xpr
If your system says “The machine is permanently activated,” you’re good to go with a lifetime license. If it shows an expiration date, like “Volume activation will expire on [date],” you’re on a temporary license, usually a KMS one.
4. Installing a New Windows Product Key: /ipk
When you get a brand-new Windows product key, or if you simply need to change the existing one, the /ipk command is what you need. This lets you input your 25-character key directly into the system.
Just make sure you type the key correctly, including the hyphens. Replace `<YourProductKey>` with your actual key in the command below. Once entered, you’ll receive a confirmation message.
slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
After installation, Windows will attempt to activate automatically. If it doesn’t, or if you want to force it, the next command is your friend.
5. Activating Windows Online: /ato
So you’ve installed your key, but Windows isn’t quite activated yet? The /ato command explicitly tells Windows to attempt online activation against Microsoft’s servers. This is often the final step after installing a product key.
Running this command will prompt Windows to connect to Microsoft’s activation services. Ensure you have an active internet connection for this to work. You’ll get a dialog box confirming success or providing an error code if something goes wrong.
slmgr.vbs /ato
If you’re having trouble with your current Windows license, maybe it’s time for a fresh start. A genuine, new license can clear up many headaches and give you peace of mind.
6. Removing and Clearing Your Windows Product Key: /upk and /cpky
Sometimes, you need to remove a product key. Maybe you’re selling your computer, transferring your license, or just cleaning up old activation data. There are two essential `slmgr` commands for this.
slmgr.vbs /upk: Uninstall Product Key
This command uninstalls the product key currently installed on your system. It essentially deactivates Windows on that machine. After using this, your Windows copy will be in an unlicensed state.
slmgr.vbs /upk
slmgr.vbs /cpky: Clear Product Key from Registry
While `/upk` removes the key from Windows activation, `/cpky` takes it a step further. This command completely clears the product key from the Windows Registry. It’s a good practice to use this if you’re selling your PC to prevent any lingering license information from being accessible.
slmgr.vbs /cpky
7. Resetting the Windows Activation Grace Period: /rearm
Windows typically gives you a grace period (often 30 days) to activate your operating system. If you’re using a trial version, or if your activation somehow expires, you might see reminders to activate. The `/rearm` command can help extend this grace period.
Running this command resets the activation timer, giving you another grace period. This can be useful for evaluation purposes or if you’re waiting for a new product key. You can usually rearm a limited number of times.
slmgr.vbs /rearm
After executing, you’ll be prompted to restart your computer. Make sure to do so for the changes to take effect. Remember, this is a temporary solution and not a substitute for a genuine Windows license.
8. Managing KMS Client Settings: /skms and /ckms
For users in corporate environments, Windows often activates through a Key Management Service (KMS) server. These servers manage activations centrally. Sometimes, you might need to manually point your system to a specific KMS server or clear existing settings.
slmgr.vbs /skms: Set KMS Host
This command lets you manually specify the KMS host server and its port. This is usually done in managed IT environments to ensure clients activate against the correct server. Replace `<KMSHost>` with the server’s IP address or hostname, and `<Port>` with the port number (default is 1688).
slmgr.vbs /skms <KMSHost>:<Port>
slmgr.vbs /ckms: Clear KMS Host
If you need to remove the configured KMS host address from your system, use this command. This can be helpful if you’re moving your computer out of a corporate network or switching to a retail license. It resets the client to automatically discover a KMS server.
slmgr.vbs /ckms
9. Activating Windows by Phone: /dti and /atp
Sometimes, online activation isn’t possible due to network restrictions or specific license types. In these cases, phone activation is your alternative. The `slmgr` commands can help you get the necessary information.
slmgr.vbs /dti: Display Installation ID
This command will display your Installation ID (IID) in a pop-up window. You’ll need to provide this ID to the automated phone system when you call Microsoft’s activation center. Make sure to write it down accurately.
slmgr.vbs /dti
slmgr.vbs /atp: Activate with Confirmation ID
After providing your IID over the phone, the automated system will give you a Confirmation ID (CID). You’ll use this command to enter the CID and complete the activation process offline. Replace `<ConfirmationID>` with the ID you received.
slmgr.vbs /atp <ConfirmationID>
10. Advanced Troubleshooting & Common Scenarios
The `slmgr` commands are incredibly versatile for diagnosing many Windows activation issues. If you encounter error codes during activation, these commands can reveal underlying problems like incorrect license types or communication issues with activation servers. For example, if you see an activation error, using `/dlv` can show you if your system is trying to activate against a KMS server when it should be using a retail key.
Sometimes, a fresh start is necessary. If you’re facing persistent problems, reinstalling Windows might be the best path. You can get official Windows installation media directly from the source. Visit the official Microsoft software download page to download an ISO for Windows 10 or 11.
For more general troubleshooting on Windows activation, Microsoft provides extensive support resources. Always check the official documentation first for up-to-date solutions. A good starting point for common problems is the Microsoft support page for Windows activation errors.
11. Frequently Asked Questions
Is `slmgr.vbs` safe to use?
Yes, `slmgr.vbs` is a legitimate, official Windows tool. As long as you use the documented commands correctly, it’s perfectly safe. Always make sure to run Command Prompt or PowerShell as an administrator when using `slmgr` commands.
What if `slmgr` commands don’t seem to work or give an error?
First, double-check that you opened your command line interface with administrator privileges. Many errors stem from insufficient permissions. Second, carefully review the command you typed for any typos. If you get a specific error code, search for that code on Microsoft’s support website for detailed troubleshooting.
Can I transfer an OEM license to a new computer using `slmgr`?
Generally, no. OEM licenses are designed to be tied to the first motherboard they are activated on. While `slmgr` commands can help you uninstall an OEM key, they don’t change the license terms that prevent its transfer to entirely new hardware. Retail licenses, on the other hand, usually offer transferability.
Does `slmgr /rearm` permanently activate Windows?
No, `slmgr /rearm` only extends the grace period for activation. It’s a temporary measure and doesn’t provide a permanent Windows license. You’ll still need a genuine product key to achieve permanent activation.







