Skip to content

See your Windows license and activation details with slmgr — via Microsoft Learn

Commandlow riskWindows 11Windows 10

slmgr.vbs is the built-in licensing script. /dli shows the edition, license channel and part of the product key. /dlv shows more detail, and /xpr shows whether activation expires.

Takes effect right away

The easy way

  1. Run each command. The results appear in a small Windows Script Host dialog box.
  2. /xpr matters mainly on work PCs activated through KMS. Retail and MAK activation is permanent, so it simply reports that the machine is permanently activated.

Command

Run in a normal Command Prompt / Terminal window.

slmgr /dli
slmgr /dlv
slmgr /xpr
These three options only read information and don't need an elevated prompt. Other slmgr options (such as /ipk, /upk and /rearm) change licensing; don't run them unless you mean to.

Sources

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

Oddbyte.Me hasn't tried this on every Windows build, so keep the undo handy.

activationlicenseslmgrproduct keykms

More in Setup & Install