Windows includes several built-in licensing tools for installing a product key, requesting activation, and checking the current license status. The two main tools covered in this guide are SLMGR and SLUI.
SLMGR is a command-line licensing script, while SLUI opens graphical Windows activation interfaces. These tools can install or activate a genuine key, but they cannot create a license, repair a blocked key, or make a key for another Windows edition compatible.
Important: Microsoft ended regular support for Windows 10 on October 14, 2025. These activation methods may still work, but activating Windows 10 does not restore security support. Use Windows 11 on compatible computers when practical.
What SLMGR and SLUI Do
| Tool | Interface | Main Purpose |
|---|---|---|
| SLMGR | Command Prompt or Windows Terminal. | Installs keys, requests activation, and displays licensing information. |
| SLUI 3 | Graphical product-key window. | Allows the user to enter or change a Windows product key. |
| SLUI 4 | Graphical phone-activation workflow where available. | Provides regional phone-activation instructions on supported systems. |
| Activation Settings | Windows Settings. | Displays the edition, activation status, troubleshooting options, and product-key controls. |
Installing a product key and activating Windows are separate operations. The key may install successfully while online activation still returns an error.
Before Installing a Product Key
Check the Installed Windows Edition
The product key must match the Windows edition installed on the computer.
- Press Windows + R.
- Enter
winver. - Select OK.
- Record the displayed Windows edition.
You can also open Settings > System > About and check the edition under Windows specifications.
A Windows Home key cannot activate Pro, and a Pro key cannot normally activate Enterprise or Education. If the editions do not match, follow a supported edition-upgrade path first.
Check the Current Activation Status
- Open Settings.
- Select Update & Security on Windows 10.
- Select Activation.
- Record the current edition, activation state, and any displayed error code.
On Windows 11, the Activation page is located under Settings > System > Activation.
Product Key Requirements
- The key must contain 25 characters.
- The key must match the installed Windows edition.
- The key must be valid for the applicable Windows release and licensing channel.
- The key must not be blocked or used on more devices than its license permits.
- The computer should have the correct date, time, and time zone.
- An internet connection is normally required for online activation.
A product key normally follows this format:
XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Never use a genuine product key in a public tutorial, screenshot, log file, or support forum.
Install a Product Key with SLMGR
Open Command Prompt as Administrator
- Open the Windows search box.
- Search for Command Prompt.
- Right-click the result.
- Select Run as administrator.
- Select Yes when User Account Control appears.

You can also press Windows + R, enter cmd, and press Ctrl + Shift + Enter.
Install the Product Key
Run the following command, replacing the placeholder with the genuine product key:
slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
The /ipk parameter installs the supplied key. A Windows Script Host dialog should report whether the key was installed successfully.

A successful installation message does not necessarily mean that Windows has been activated. It only confirms that Windows accepted the key for installation.
Request Online Activation
After installing the key, run:
slmgr.vbs /ato
The /ato parameter instructs Windows to request activation using the currently installed product key.
Keep the computer connected to the internet and wait for the Windows Script Host dialog. If activation fails, record the complete error code before closing it.
Key Installed Successfully
Windows accepted the product key, but you should still run slmgr.vbs /ato and check the activation status.
Key Rejected
Check the edition, key characters, license channel, purchase information, and complete Windows activation error.
Change a Product Key with SLUI
SLUI provides a graphical alternative for users who prefer not to enter a product key in Command Prompt.
Use SLUI 3
- Press Windows + R.
- Enter
slui 3. - Select OK.
- Enter the new 25-character product key.
- Select Next.
- Follow the displayed activation instructions.
The appearance of the dialog may vary according to the Windows version and edition.
Use Windows Activation Settings
You can also change the product key without using Run or Command Prompt.
- Open Settings.
- On Windows 10, select Update & Security > Activation.
- On Windows 11, select System > Activation.
- Select Change product key.
- Enter the genuine product key.
- Select Next.
- Complete the activation process.
Use SLUI 4 for Phone Activation
Some Windows versions and licensing scenarios may provide a phone-activation workflow through SLUI 4. Availability varies by Windows edition, region, and license type.
- Press Windows + R.
- Enter
slui 4. - Select OK.
- Select the correct country or region if the window appears.
- Use only the official phone number displayed by Windows or published by Microsoft.
- Follow the official activation instructions.
If SLUI 4 does not open or does not provide a phone number, use the Activation troubleshooter or contact Microsoft through an official support channel. Do not call numbers found in unverified pop-ups or third-party support pages.
Verify Windows Activation
Check Activation Settings
- Open the Windows Activation page.
- Confirm that the displayed edition matches your license.
- Confirm that Windows reports it is activated.
Check the System Information
Open File Explorer and review the system information where available.

- Open File Explorer.
- Right-click This PC.
- Select Properties.
- Review the installed Windows edition.
- Open the Activation page to confirm the current activation status.

On newer Windows versions, the Properties option opens the About page. Activation status may appear on a separate Activation page.
Verify with SLMGR
Run the following command to check whether the activation is permanent or has an expiration date:
slmgr.vbs /xpr
For detailed license information, run:
slmgr.vbs /dlv
Useful SLMGR Commands
| Command | Purpose | Administrator Access |
|---|---|---|
slmgr.vbs /ipk PRODUCT-KEY |
Installs a new Windows product key. | Required. |
slmgr.vbs /ato |
Requests online activation using the installed key. | Required. |
slmgr.vbs /dli |
Displays basic license and activation information. | May not be required for basic information. |
slmgr.vbs /dlv |
Displays detailed license information for troubleshooting. | Recommended. |
slmgr.vbs /xpr |
Displays whether activation has an expiration date. | May not be required. |
SLMGR displays licensing information in Windows Script Host dialog boxes rather than directly inside Command Prompt.
Fix Common Activation Errors
| Problem | What to Verify | Next Action |
|---|---|---|
| Edition mismatch | Check whether Home, Pro, Enterprise, Education, or another edition is installed. | Use a valid key for the installed edition or follow a supported edition-upgrade path. |
| Invalid product key | Check all 25 characters and confirm the Windows product and edition. | Enter the correct key and record the complete error if it is rejected. |
| Blocked product key | Check the key source and activation error. | Contact the seller or Microsoft with the purchase information and error code. |
| Connectivity problem | Check internet access, date, time, time zone, proxy, and VPN settings. | Correct the connection or time settings and retry slmgr.vbs /ato. |
| Activation service unavailable | Check whether Windows reports a temporary activation-service error. | Wait and retry instead of repeatedly replacing the product key. |
| Key used on another device | Review the license type and number of permitted devices. | Remove the license from the previous device when permitted or obtain another license. |
Run the Activation Troubleshooter
- Open the Windows Activation page.
- Select Troubleshoot, if available.
- Follow the displayed instructions.
- Record any complete activation error code.
Do not repeatedly install different keys without understanding the error. This can make the licensing state more difficult to diagnose.
Activation After a Hardware Change
A significant hardware change, especially replacing the motherboard, may cause Windows to require reactivation.
- Confirm that the installed Windows edition has not changed.
- Sign in with the Microsoft account previously linked to the digital license, if applicable.
- Open the Activation troubleshooter.
- Select the option indicating that hardware was recently changed, if displayed.
- Select the correct device from the account list.
- Follow the activation instructions.
OEM licenses are generally tied to the first computer on which they are activated, especially its motherboard. Retail licenses may have different transfer rights under their applicable terms.
Protect Your Product Key
- Do not publish the complete key in screenshots.
- Do not send the key through public chat rooms or forums.
- Store the purchase invoice and key in a secure location.
- Do not run activation scripts downloaded from unverified websites.
- Do not install unknown KMS tools or activation cracks.
- Use official Microsoft interfaces and built-in Windows commands.
- Contact the seller if a newly purchased key is already blocked or used.
SLMGR and SLUI are administration tools. They do not bypass Microsoft licensing requirements.
Frequently Asked Questions
What is the difference between SLMGR /ipk and /ato?
The /ipk command installs a product key. The /ato command requests activation using the currently installed key.
What does SLUI 3 do?
slui 3 opens a graphical window that allows you to enter or change the Windows product key.
What does SLUI 4 do?
slui 4 may open the phone-activation workflow on supported Windows versions and in supported regions. The interface is not available in every licensing scenario.
Does “product key installed successfully” mean Windows is activated?
No. It only confirms that Windows accepted the key for installation. Run slmgr.vbs /ato and check the Activation page or slmgr.vbs /xpr.
Do I need administrator access to run SLMGR?
Administrator access is required to install a product key and request system-level activation changes.
Can a Windows Home key activate Windows Pro?
No. The product key must match the installed edition. Windows Pro requires a valid Pro license or eligible Pro digital license.
Do I need an internet connection to activate Windows?
Online activation normally requires an internet connection. Phone or organization-managed activation may be available in certain licensing scenarios.
Is it safe to share my Windows product key with support?
Share the complete key only through a trusted private channel when an authorized seller or Microsoft specifically requires it. Never post it publicly.
Does activating Windows 10 extend its support?
No. Windows 10 reached the end of regular support on October 14, 2025. Activation confirms licensing but does not change the product lifecycle.
Conclusion
To install and activate a genuine Windows product key from Command Prompt, run slmgr.vbs /ipk with the key and then run slmgr.vbs /ato. Use slmgr.vbs /xpr or the Windows Activation page to verify the result.
Users who prefer a graphical interface can use slui 3 or the Change product key option in Windows Settings. Phone activation through slui 4 may be available depending on the Windows version, region, edition, and license.
Always verify that the key matches the installed Windows edition, record complete activation errors, and avoid unverified activation scripts or tools.
Need a genuine Windows license? View Windows products.
