PowerShell activation Windows 11 is the process of checking and managing the Windows 11 license from the command line instead of the Settings app. It relies on the same licensing service used by earlier versions, so the familiar slmgr switches still work, while CIM queries give structured output that is easy to filter, sort and export.
How Windows 11 Licensing Works
Most Windows 11 devices activate with a digital license. That license is recorded against the hardware, and often your Microsoft account, after a genuine upgrade or purchase. Others use a 25-character product key, either printed on a retail card, stored in device firmware or issued through a volume licensing agreement.
Knowing which method your device uses helps you predict what happens after a reinstall or hardware repair. A digital license reactivates automatically on the same hardware, while a volume key depends on your organization's activation infrastructure.
| License type | How it activates | Typical device |
|---|---|---|
| Digital license | Automatically after connecting to the internet | Upgraded or prebuilt home PCs |
| Retail product key | Key entered during setup or in Settings | Custom-built computers |
| OEM firmware key | Read from UEFI by Windows setup | Laptops and branded desktops |
| Volume license | MAK or KMS through the organization | Business and school devices |
Checking Activation with a CIM Query
The SoftwareLicensingProduct class lists every licensing product on the system. Filtering on products that have a partial key installed shows the one that matters, along with a numeric status.
Get-CimInstance -ClassName SoftwareLicensingProduct -Filter "PartialProductKey IS NOT NULL" |
Select-Object Name, Description, LicenseStatus, PartialProductKey
Understanding LicenseStatus Values
A LicenseStatus of 1 means the product is licensed. Other values describe grace or notification states, which tell you Windows needs attention. The list below covers the values you are most likely to see.
- 0 — Unlicensed
- 1 — Licensed and activated
- 2 — Initial grace period
- 3 — Additional grace period after a hardware change
- 4 — Non-genuine grace period
- 5 — Notification mode, activation required
- 6 — Extended grace period
Using slmgr on Windows 11
The slmgr tool remains available on Windows 11 and works from PowerShell. Use slmgr /xpr for a quick permanent activation check and slmgr /dlv when you need the activation ID or remaining rearm count for support conversations.
Open PowerShell as administrator before changing anything. On Windows 11, right-click Start and choose Terminal (Admin), then confirm the prompt. The terminal opens a PowerShell tab by default.
Installing a Purchased Key
Enter your genuine key with slmgr /ipk followed by the key, then run slmgr /ato. If activation succeeds, the Settings page under System and Activation will show that Windows is activated with a digital license or product key.
Edition Checks Before Activation
Activation fails when the key does not match the installed edition. Confirm the edition first with a quick query, especially on devices that shipped with Home but need Pro features such as BitLocker management or Group Policy.
(Get-CimInstance Win32_OperatingSystem).Caption
Get-ComputerInfo -Property WindowsProductName, WindowsEditionId
To move from Home to Pro, use Settings, System, Activation and choose Change product key. Windows upgrades the edition and activates it in one step, which avoids the mismatch errors you might see from the command line.
Reactivating After a Hardware Change
Replacing a motherboard can cause Windows 11 to lose its digital license link. When the license is connected to your Microsoft account, the Activation troubleshooter in Settings offers an option stating that you changed hardware recently. Select the device and Windows reapplies the license.
After the troubleshooter finishes, run the CIM query again to confirm LicenseStatus shows 1. Recording the before and after output is helpful if you later need to contact Microsoft support.
Activation After a Clean Installation
A clean installation of Windows 11 on hardware that already holds a digital license usually activates on its own. During setup, choose I don't have a product key, install the same edition as before and connect to the internet once the desktop appears.
Give the licensing service a few minutes, then run slmgr /xpr. If the device still shows as unactivated, open the Activation page and run the troubleshooter, which can trigger the check immediately and explain any problem it finds.
Common Mistakes to Avoid
- Installing Pro when the device was licensed for Home
- Using a Windows Server or Enterprise key on a consumer edition
- Running activation commands in a window without administrator rights
- Entering a key copied from an untrusted website
Working with Windows Terminal Profiles
Windows Terminal can host several shells at once. For licensing work, open a PowerShell profile with elevation so that each tab already has the required rights, and keep a second standard tab for everyday commands that do not need administrator access.
Separating the two reduces the chance of running a system-changing command by accident. It also makes the elevated tab easy to spot, because its title clearly includes the Administrator label.
Windows 11 Activation at a Glance
Most activation tasks on Windows 11 follow the same short path: confirm the edition, read the current status, apply a genuine license if needed and verify the result. Keeping that order prevents the most common mistakes and makes each step easy to explain to someone else.
- Confirm the edition with a Win32_OperatingSystem query
- Read the status with
slmgr /xpror the CIM query - Apply a digital license, purchased key or organization license
- Verify that LicenseStatus now reports 1
Frequently Asked Questions
Can a Windows 10 license activate Windows 11?
A genuine Windows 10 license generally activates Windows 11 of the same edition on eligible hardware. Upgrading through Windows Update keeps the digital license intact.
Do I need the internet for Windows 11 activation?
Online activation needs an internet connection. Phone activation is an alternative in some regions, using the installation ID shown by slmgr /dti.
Where do I see activation in Windows 11 Settings?
Open Settings, then System, then Activation. The page shows the activation state and offers the troubleshooter and the option to change the product key.
Conclusion
PowerShell activation Windows 11 combines the classic slmgr tool with structured CIM queries, giving you a clear picture of license type, edition and status. Matching the key to the edition and using the troubleshooter after hardware changes resolves most activation questions.
For a full list of switches, see the activation command reference, which applies to Windows 11 as well.



