Check Windows Activation with slmgr /dli and /xpr

Query detailed license information and activation expiry using the built-in Software Licensing Management Tool.

WindowsactivationcmdlicensingLow risk
Run slmgr /dli for edition, partial product key, and license channel, and slmgr /xpr to see whether activation is permanent or expiring.

01Command

Command
$ slmgr /dli
slmgr /xpr

02What it does

slmgr.vbs is the scriptable front-end to Windows licensing that activation dialogs hide. /dli shows the SKU, partial key, and channel (Retail/OEM/VL); /xpr prints whether the machine is permanently activated or shows a KMS expiry timestamp — essential on volume-licensed machines. /dlv adds the full activation ID and rearm count, and all output arrives in a popup unless you pipe through cscript, e.g. cscript //nologo c:\windows\system32\slmgr.vbs /dli.

03Risk

RiskLow risk

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • Slmgr.vbs options
    Microsoft Learn · vendor-doc · 2026-09-17
    Evidence: Documents slmgr /dli (license info) and /xpr (expiration) switches.

Last verified: 2026-09-17 · Category: System & Settings

06Related solutions