Windows Software Licensing Management Tool (slmgr.vbs) cheat-sheet

The follow are example commands for using slmgr.vbs which is a visual basic script provided in Windows Vista/Server 2008 (and newer) that allows you to configure Windows licensing.

Get current key info

slmgr.vbs /dli

Get more detailed info

slmgr.vbs /dlv

Get key expiration

slmgr.vbs /xpr

Rearm trial license

slmgr.vbs /rearm

Remove key (need to clear from reg afterwards)

slmgr.vbs /upk

Clear key from registry

slmgr.vbs /cpky

Enter new key

slmgr.vbs /ipk {:ProductKey:}

Start online key activation

slmgr.vbs /ato

Get details required for offline activation: 1 – Installation ID (which will need to be provided to Microsoft in lots of 6 or 7) 2 – Activation ID (which you will need for the next command) Note: You can Ctrl + C the window to copy its contents elsewhere

slmgr.vbs /dlv

Activate Windows using the Confirmation ID provided by Microsoft

slmgr.vbs /atp {:ConfirmationID:} {:ActivationID:}

Tags: #Os #Windows