See your Windows license and activation details with slmgr — via Microsoft Learn
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
- Run each command. The results appear in a small Windows Script Host dialog box.
/xprmatters 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 /xprThese 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
- Slmgr.vbs options for obtaining volume activation information — by Microsoft Learn
- 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.