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
Full reference with every switch: slmgr.vbs complete guide
Related Resources
- Windows activation error reference - all error codes and solutions
- All GVLK keys for Windows and Office