Activating your copy of Windows 10 can be quite the challenge if the regular way doesn’t seem to work. You might also want to change your product key in case you purchased a new one to replace your old system for a reason. Luckily, there are multiple ways to plug in a product key and push activation through with the help of the handy Command Prompt.
Our article focuses on the SLMGR and SLUI 4 commands that help with your activation of Windows 10 with a working product key.
What SLMGR and SLUI Do
SLMGR is a Windows licensing script used from an elevated command prompt, while SLUI opens graphical activation interfaces. These tools manage activation; they do not create a license or make an invalid key genuine. Use only a valid key for the installed Windows edition.
Why should I activate Windows 10?
Although you can use Windows 10 fairly well without activation, there are many benefits of getting hold of a product key and unlocking the full potential of your system.
The first thing you’ll notice when using a non-activated copy of Windows 10 is definitely the pesky watermark in the bottom-right corner of your screen. This text prompts you to activate your system and shows up on top of every window you have open.
Other limitations of a non-activated system include the inability to opt-out of data collection. Windows 10 by default collects and sends user data to Microsoft, and the only way to stop this is by turning off specific permissions once you’ve activated your system.
For customization lovers, Microsoft has set up limitations and won’t allow users without an activated system to set custom wallpapers or colors.
To some people, these limitations are easy to put up with, while others would prefer to get hold of a product key and activate their system as soon as possible. If you need help activating your system and pushing a product key through, the methods below will help you accomplish a successful activation.
Install a Product Key and Request Activation
Open Terminal or Command Prompt as administrator. First, install the valid product key that matches the Windows edition currently installed.
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Replace the placeholder with the valid 25-character product key. A successful operation should return a message indicating that the product key was installed successfully. Do not display a real product key in screenshots, examples, logs, or public support content.
After installing the key, request online activation:
slmgr /ato
This asks Windows to attempt activation using the installed product key. Keep the computer connected to the internet and review any error code returned if activation does not succeed.
Check the Current License Status
Before changing the key, check the installed Windows edition and activation state. Record the current status and any activation error code before continuing.
| Check | Command | Purpose |
|---|---|---|
| Basic license status | slmgr /dli |
Displays basic licensing and activation information |
| Detailed license status | slmgr /dlv |
Displays detailed licensing information that can help with troubleshooting |
| Expiration status | slmgr /xpr |
Shows whether the current Windows activation has an expiration date |
Check basic license information
slmgr /dli
Use this command to view basic licensing information and the current activation state.
Check detailed license information
slmgr /dlv
Use this when additional licensing details are needed while diagnosing an activation problem.
Check activation expiration
slmgr /xpr
This displays whether the current Windows activation is permanently activated or has an expiration date, where applicable.
1. How to plug in a product key with SLMGR and SLUI
The first way to push activation through with your product key is using the SLMGR command inside the Command Prompt. The steps below will show you how to do this with ease.
Note: You might be required to have access to an administrator account to perform all of the steps described below. If the account you’re currently using doesn’t have administrative permissions, make sure to change this in your settings or contact your IT professional.
- Open the Command Prompt in one of the following ways:

- Using the search function in your taskbar, look up Command Prompt. When you see it in the results, right-click on it and choose Run as Administrator.
- Press the Windows + R keys on your keyboard to bring up the Run utility. Type in “cmd” and press the Ctrl + Shift + Enter keys on your keyboard. Doing so, you’re launching the Command Prompt with administrative permissions.
- Press the Windows + X keyboard shortcut, then select Command Prompt (Admin).
- If prompted, click Yes to allow the Command Prompt to make changes on your device. You might be required to input the administrator password as well.
- Type in the following command, complete with your 25 character product key formatted this way: SLMGR /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx

- Hit the Enter key on your keyboard. You should see a dialog box pop up on your screen, informing you about the activation of your product key.
After completing the steps above, your system should be successfully activated. You can double-check this by following this short guide:
- Open the File Explorer.

- Right-click on This PC and choose Properties.

- Check the Windows activation section. If you see “Windows is not activated.” proceed to the next method.
Use SLUI to Change a Key or Troubleshoot
Use the standard Activation settings or the relevant SLUI interface when a graphical workflow is preferred. Interface availability can vary by Windows version and region, so the article should describe the expected purpose instead of promising that every dialog will appear identically.
2. How to change your product key with SLUI
The handy SLUI, also known as Software Licensing User Interface, can help you change your product key within seconds. Here are all the steps to follow if you want to use a different product key on Windows 10 without having to reinstall your entire system.
- Press the Windows + R keys on your keyboard to bring up the Run utility.
- Type in “SLUI 3” and click on the OK button. This will open the Change Product Key window.
Did you know? There are 4 SLUI commands you can use. They’re all commands related to Windows activation. The next section below describes a different SLUI command. - Type in the new product key you want to use and follow any on-screen instructions to complete the activation.
3. Reach the Microsoft Activation Center with SLUI
Changing your product key is not the only thing SLUI can help you with. Using a different command, you can get in touch with the Microsoft Activation Center and manually activate Windows 10 with your product key with their help.
- Open the Command Prompt in one of the following ways:
- Using the search function in your taskbar, look up Command Prompt. When you see it in the results, right-click on it and choose Run as Administrator.
- Press the Windows + R keys on your keyboard to bring up the Run utility. Type in “cmd” and press the Ctrl + Shift + Enter keys on your keyboard. Doing so, you’re launching the Command Prompt with administrative permissions.
- Press the Windows + X keyboard shortcut, then select Command Prompt (Admin).
- If prompted, click Yes to allow the Command Prompt to make changes on your device. You might be required to input the administrator password as well.
- Type in the following command and press the Enter key on your keyboard: SLUI 4
- A window should appear, prompting you to select your country. Make sure to select the right country so you can have access to the correct phone numbers.Note: You can also refer to this sheet on the official Microsoft website to find the phone number you need to call.
- Follow any on-screen instructions to get in touch with the Microsoft Activation Center. They will help you manually activate your new product key.
Common SLMGR and SLUI Errors
| Problem | What to Verify | Next Action |
|---|---|---|
| Edition mismatch | Check whether Windows Home, Pro, or another edition is installed and confirm that the key matches it | Use a valid key for the installed edition or follow a supported edition-upgrade path |
| Invalid key | Check the 25-character key for typing errors and confirm that it belongs to the intended Windows product | Re-enter the correct valid key and record the full error code if it is rejected |
| Blocked key | Confirm the key source and review the activation error returned by Windows | Contact the seller or Microsoft support with the purchase information and error code |
| Connectivity problem | Verify internet access, date, time, and time-zone settings | Correct connectivity or system-time problems and retry activation |
| Activation service unavailable | Determine whether Windows reports a temporary server or service error | Wait and retry rather than repeatedly changing the installed product key |
| Hardware change | Check the license type and whether the device was previously associated with a Microsoft account | Use the Activation troubleshooter where eligible and review the license terms if reactivation fails |
We hope that our article was able to help you activate your copy of Windows 10 or change your product key through the use of the SLMGR and SLUI commands. Enjoy your computer to the fullest, without any limitations insight.
