Slmgr.vbs May 2026

Understanding slmgr.vbs : The Windows Software License Management Tool

cscript slmgr.vbs [ComputerName] [User] [Option] [Additional Parameters] Note: You must run Command Prompt or PowerShell as an Administrator. slmgr.vbs

slmgr.vbs (Software License Management script) is a command-line tool built into Microsoft Windows operating systems. Administrators and advanced users use it to perform critical licensing and activation tasks, such as installing product keys, activating Windows, checking license status, or changing a product key. Understanding slmgr

| Command | Description | | --- | --- | | cscript slmgr.vbs /dli | Display current license information (partial) | | cscript slmgr.vbs /dlv | Display detailed license information | | cscript slmgr.vbs /xpr | Show expiration date of current activation | | cscript slmgr.vbs /ipk <ProductKey> | Install a product key | | cscript slmgr.vbs /ato | Activate Windows online | | cscript slmgr.vbs /upk | Uninstall the current product key | | cscript slmgr.vbs /cpky | Clear the product key from the registry (prevents accidental scraping) | | cscript slmgr.vbs /dli [Activation ID] | Show license info for a specific edition | | Command | Description | | --- | --- | | cscript slmgr