Activating Windows 11 ensures that your copy of Windows has a valid activation status and access to the personalization features associated with an activated installation. If Windows displays an activation watermark or reports that it cannot activate, you can use Command Prompt to check the current status, install a valid product key, and initiate activation.
Windows 11 supports several activation methods, including a digital license linked to your device or Microsoft account and a valid 25-character product key. The correct method depends on how you obtained Windows and whether your computer already has a digital license.
Command Prompt provides useful commands for checking activation information and troubleshooting certain activation problems. However, running an activation command does not create a license or make an unlicensed copy of Windows genuine. You must have a valid license that matches your Windows edition and licensing conditions.
In this guide, you will learn how to check Windows 11 activation status using CMD, activate Windows with a valid product key, troubleshoot common activation errors, and verify the result. You will also learn what to do if your computer has a digital license but Windows fails to activate automatically.
Method 1: Check Windows 11 Activation Status Using CMD
Before attempting to activate Windows, check whether your computer is already activated. This prevents unnecessary changes to a system that is working correctly.
Follow these steps:
- Press Windows + S to open Windows Search.
- Type Command Prompt.
- Select Run as administrator if you want to use administrative commands.
- Approve the User Account Control prompt if it appears.
- Enter the following command:
slmgr /xpr - Press Enter.
- Wait for the Windows Script Host dialog to appear.
The dialog indicates whether Windows is permanently activated or whether an activation expiration date applies.
For more detailed licensing information, run:
slmgr /dlv
This command displays additional licensing details, including information about the installed Windows license channel and activation status.
You can also check the activation page in Windows Settings by navigating to Settings > System > Activation.
If Windows is already activated, you do not need to activate it again. If the system reports that activation is required, continue with the appropriate method below.
Method 2: Activate Windows 11 Using a Valid Product Key
If you have a valid Windows 11 product key, you can install it using Command Prompt and then initiate activation.
A Windows product key contains 25 characters arranged in five groups. Make sure the key is genuine and intended for the Windows edition installed on your computer.
To install the key:
- Open Command Prompt as an administrator.
- Enter the following command, replacing the placeholder with your actual product key:
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX - Press Enter.
- Wait for Windows to display the result.
If the key is accepted, you can initiate online activation by running:
slmgr /ato
Press Enter and wait for the activation result.
Your computer generally needs an internet connection for online activation. If the process succeeds, check the activation status again using:
slmgr /xpr
You can also open Settings > System > Activation to confirm the result.
If the key is rejected, check that you entered it correctly and that it matches your installed edition of Windows. A key for Windows 11 Home, for example, may not activate Windows 11 Pro.
Do not share your product key publicly or enter it into untrusted websites.
Method 3: Activate Windows 11 With a Digital License
Some Windows 11 computers activate automatically through a digital license rather than requiring you to enter a product key manually.
A digital license is an activation entitlement associated with your device. Depending on how Windows was licensed, it may also be linked to your Microsoft account to help with reactivation after certain hardware changes.
To check activation:
- Press Windows + I.
- Select System.
- Click Activation.
- Review the activation status.
If Windows reports that it is not activated, make sure the computer is connected to the internet and that you have installed the correct Windows edition for your license.
You can then try activating Windows through Settings or use an elevated Command Prompt and run:
slmgr /ato
If the computer has a valid digital license for the installed edition, Windows may activate automatically.
If activation fails after reinstalling Windows, confirm that you installed the same edition that was previously licensed. A digital license for Windows 11 Home will not normally activate Windows 11 Pro.
If the license is associated with your Microsoft account, sign in with the appropriate account and use the Activation Troubleshooter if it is available.
Method 4: Change the Windows Product Key Using CMD
If you have a new, valid product key and need to replace the key currently installed on your computer, you can use the same product-key installation command.
Open Command Prompt as an administrator and run:
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Replace the placeholder with your new key, then press Enter.
After the key is installed, run:
slmgr /ato
Windows will attempt to activate using the installed key.
This method is useful when moving to a different Windows edition that your license supports or replacing an invalid key with a valid one. However, the new key must be eligible for the installed edition and comply with its licensing terms.
If you are changing from Windows 11 Home to Pro, make sure you have a valid Pro license and follow the supported edition-upgrade process.
If you only want to view or troubleshoot your existing license, use slmgr /dlv rather than changing the product key unnecessarily.
Method 5: Troubleshoot Windows 11 Activation Errors
Activation can fail for several reasons, including an incorrect product key, a mismatch between the product key and Windows edition, a network problem, or a licensing issue.
Start by checking the error displayed in Settings > System > Activation.
Then try these steps:
- Confirm that your computer is connected to the internet.
- Verify that the installed Windows edition matches your license.
- Check the product key for typing errors.
- Run Command Prompt as an administrator.
- Enter
slmgr /atoand press Enter. - Review the activation result.
If the error persists, note the error code and its exact message. These details can help identify whether the issue relates to the key, activation service, licensing channel, or device configuration.
You can also run the Windows Activation Troubleshooter by opening Settings > System > Activation, if the option is available. It may help resolve certain activation problems, particularly after a significant hardware change.
Avoid repeatedly entering different product keys without checking their validity. This will not resolve an edition mismatch or create a valid license.
If the product key was purchased from a retailer, contact the seller or Microsoft support if the key appears invalid or cannot be activated despite meeting the licensing requirements.
Method 6: Activate Windows After a Hardware Change
Replacing major hardware, particularly the motherboard, can sometimes affect Windows activation. Whether reactivation is possible depends on the type of license and the circumstances of the hardware change.
If Windows became deactivated after a hardware replacement, begin by checking the Activation page.
- Press Windows + I.
- Navigate to System > Activation.
- Review the activation message.
- If available, select Troubleshoot.
- Follow the instructions provided by the troubleshooter.
- If asked, sign in with the Microsoft account associated with your digital license.
- Select the device or reactivation option that matches your situation, if offered.
If the troubleshooter cannot reactivate Windows, check whether your license permits reactivation on the changed hardware.
Retail licenses generally provide more transfer flexibility than OEM licenses, which are usually tied to the original device, subject to applicable licensing terms.
You can also open an elevated Command Prompt and run:
slmgr /ato
However, this command will not override licensing restrictions or transfer a license that is not eligible for the new hardware.
If activation continues to fail, contact Microsoft support or the original license provider.
Method 7: Check Windows Licensing Details
The Software Licensing Management Tool can display additional information about your Windows license. These details can be useful when diagnosing activation issues.
To view the license information:
- Open Command Prompt as an administrator.
- Enter:
slmgr /dlv - Press Enter.
- Review the information displayed in the Windows Script Host dialog.
The output may include licensing status, a partial product key, and details about the licensing channel.
To display basic Windows license information, you can also run:
slmgr /dli
For activation expiration information, use:
slmgr /xpr
These commands serve different purposes. The /dli command displays basic licensing information, /dlv provides more detailed information, and /xpr checks activation expiration status.
Some Windows installations use volume activation methods, such as organizational activation services. If your computer belongs to a business or educational organization, its activation may depend on the organization’s licensing infrastructure.
Do not attempt to replace an organization’s activation method with an unrelated product key. Contact your IT administrator if the device is managed by your workplace or school.
Conclusion
You can use Command Prompt to check Windows 11 activation status, install a valid product key, and initiate online activation. The most useful commands are slmgr /xpr for checking activation expiration status, slmgr /dlv for detailed licensing information, slmgr /ipk for installing a valid product key, and slmgr /ato for attempting activation.
If your computer has a digital license, Windows may activate automatically when the correct edition is installed and the device connects to the internet. If activation fails, check the product key, Windows edition, network connection, and displayed error code before trying additional steps.
For problems following a hardware change, use the Activation Troubleshooter when available and verify that your license permits reactivation on the new hardware.
Remember that CMD cannot generate a genuine Windows license or bypass activation requirements. Use a valid license and official Windows activation methods to ensure your installation remains properly activated.
Frequently Asked Questions
1. What is the CMD command to activate Windows 11?
Open Command Prompt as an administrator and run slmgr /ato. This attempts online activation using the license or product key already installed on your system.
2. Can I activate Windows 11 without a product key?
Yes, if your computer has an eligible digital license for the installed Windows edition. Connect to the internet and check Settings > System > Activation. A digital license is still a valid activation entitlement; it does not mean that licensing requirements can be skipped.
3. Why does the Windows 11 activation command fail?
Activation may fail because the product key is invalid, the key does not match the installed edition, the internet connection is unavailable, or the license cannot be activated on the current hardware. Check the displayed error code and the Activation page for more information.
4. How do I check whether Windows 11 is permanently activated?
Open Command Prompt and run slmgr /xpr. Windows will display a dialog indicating whether activation is permanent or whether an expiration date applies.
Quick Summary
- Run
slmgr /xprto check Windows activation status. - Use
slmgr /ipkto install a valid product key. - Run
slmgr /atoto attempt online activation. - Use Windows Settings and the Activation Troubleshooter to investigate activation errors.
Correct CMD activation command detailsAdd clear activation command examples





