slmgr.vbs Command Examples

Install, activate, and manage Windows licenses. This command may override, deactivate, and/or remove your current Windows license. Please proceed with caution. More information: https://learn.microsoft.com/windows-server/get-started/activation-slmgr-vbs-options.

slmgr.vbs /dli

slmgr.vbs /dti

slmgr.vbs /xpr

slmgr.vbs /ipk {{product_key}}

slmgr.vbs /ato

slmgr.vbs /atp {{confirmation_id}}

slmgr.vbs /cpky

slmgr.vbs /upk