slmgr.vbs Command Reference - Every Switch Explained

slmgr.vbs (Software License Management Script) is the built-in Windows tool for managing product keys, activation status, and licensing.

Installation Commands

Command Description
slmgr /ipk <key> Install a product key
slmgr /upk Uninstall the current product key
slmgr /cpky Clear product key from registry
slmgr /rilc Reinstall license files

Activation Commands

Command Description
slmgr /ato Activate Windows online
slmgr /dti Display installation ID for phone activation

KMS Commands

Command Description
slmgr /skms <server:port> Set KMS server
slmgr /ckms Clear KMS server setting

Status Commands

Command Description
slmgr /dli Display license information (brief)
slmgr /dlv Display license information (verbose)
slmgr /xpr Show expiration date of current license

Common Use Case: KMS Activation

1
2
3
4
slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
slmgr /skms kms.windowskms.com:1688
slmgr /ato
slmgr /dli

Full reference with every switch: slmgr.vbs complete guide

Edit

Pub: 28 Jul 2026 16:21 UTC

Views: 2