To check if Windows is activated, open Settings > System > Activation on Windows 11 (or Settings > Update & Security > Activation on Windows 10) and read the status line. For a command-line check, run slmgr /xpr.
This article covers both methods, what each message means, and the first things to try when Windows reports that it is not activated.
Check activation in Settings
This is the method Microsoft documents, and it works for every edition.
- Select Start, then Settings.
- On Windows 11, select System, then Activation. On Windows 10, select Update & Security, then Activation.
- Read the line next to your Windows edition.
Shortcut: press Win+R, type ms-settings:activation and press Enter. That opens the same page directly.
What the activation status messages mean
On Windows 11, Microsoft lists these messages on the Activate Windows support page:
| Message | What it tells you |
|---|---|
Windows is activated | Activation succeeded. The page does not say which method was used. |
Windows is activated with a digital license | Activated by a digital license, which needs no product key typed in. |
Windows is activated with a digital license linked to your Microsoft account | The same, and the license is tied to your Microsoft account. |
Windows is not activated | Activation has not succeeded. Windows shows an error message explaining the failure. |
Microsoft says it is essential to link your Microsoft account to the Windows 11 license on your device. A linked license is easier to reactivate after a hardware change, because you can sign in with that account and use the activation troubleshooter. The same page says the activation method depends on how you obtained Windows.
Check activation with slmgr in Command Prompt or PowerShell
Slmgr.vbs is a script included in Windows for managing licensing and activation. Microsoft documents its options on Microsoft Learn. Open Command Prompt or PowerShell and run:
slmgr /xpr
A dialog box appears. Microsoft describes /xpr as displaying the activation expiration date for the product. By default it refers to the current Windows edition. For a permanently activated retail or MAK system, the dialog reports that activation does not expire. Example output (the wording can differ between Windows versions):
The machine is permanently activated.
For a bit more detail, use /dli:
slmgr /dli
Microsoft describes /dli as displaying license information for the installed active Windows edition. The dialog typically lists the edition name, a partial product key, and a license status line such as Licensed. For the full set of fields, including the activation ID, run:
slmgr /dlv
All three options are documented as not requiring elevated privileges, so a normal (non-administrator) window is enough. If you prefer text in the console instead of dialog boxes, run the script through the console host: cscript //nologo %windir%\system32\slmgr.vbs /xpr.
What /xpr tells you about volume licenses
Microsoft says /xpr is primarily useful for KMS clients, because MAK and retail activation is perpetual. KMS is the volume licensing method used by many organizations. A KMS activation is valid for 180 days, and a KMS client tries to renew it every seven days by default. So on a work PC you may see an expiry date within six months, and that is normal as long as the PC can reach the organization's KMS host.
Is Windows activated or just using a trial?
The Activation page shows the status for the edition that is installed. If it says Windows is not activated, Windows is running unlicensed. An unlicensed state is also what you get after removing the product key with slmgr /upk and restarting, according to Microsoft's documentation of that option. Do not run /upk to test anything: it removes the key.
What to do if Windows is not activated
Work through these in order, cheapest first.
- Read the error message. The Activation page shows an error message explaining the failure. Microsoft points to its page "Get help with Windows activation errors" for specific codes.
- Check your connection. Online activation needs internet access. Connect, then wait a few minutes or restart the PC.
- Try activation again. On the Activation page, use the troubleshoot option if it is offered. From a command line you can run
slmgr /ato, which Microsoft documents as prompting Windows to try online activation. Online activation requires an elevated prompt, so run Command Prompt as administrator for this one. - Sign in with your Microsoft account. If your license was linked to that account, signing in lets Windows find it again after a hardware change.
- Enter a product key. A product key is a 25-character code. You can enter one under Settings > System > Activation. Use a key that came with your copy of Windows or a genuine purchase from Microsoft or an authorized seller.
- On a work or school PC, contact your IT department. These PCs usually activate against the organization's KMS host or Active Directory, and the user has nothing to enter. Microsoft notes that KMS clients that cannot reach the host retry every two hours.
Check several things at once
If you manage a PC remotely or want the edition and license state together, slmgr /dli gives both in one dialog.
If the status looks wrong
If Settings says activated but slmgr /xpr shows an expiry date, the PC is almost certainly using volume (KMS) activation, which renews on a schedule. If Settings says not activated right after a clean install on hardware that was activated before, sign in with the Microsoft account linked to the license and run the troubleshooter before buying a new key.
Frequently asked questions
- How do I check if Windows is activated without Settings?
- Open Command Prompt or PowerShell and run slmgr /xpr. A small dialog shows the activation expiration state for the installed edition. For more detail, run slmgr /dli, which shows the license status in a dialog. Neither command needs administrator rights.
- Does slmgr /xpr work on Windows 11?
- Yes. slmgr.vbs is the licensing script included in Windows, and Microsoft documents /xpr as the option that displays the activation expiration date for the current edition. Microsoft notes it is mainly useful for volume (KMS) clients, because retail and MAK activation does not expire.
- What is the difference between a digital license and a product key?
- A product key is a 25-character code. Microsoft describes a digital license as a method of activation in Windows 11 that does not require you to enter a product key. Which one applies to your PC depends on how you got Windows.
- Is Windows activation the same as Microsoft 365 activation?
- No. Windows activation covers the operating system and is checked under Settings > System > Activation. Office and Microsoft 365 apps have their own separate licensing and sign-in status inside those apps.