slmgr.vbs (Vista and Server 2008)Software Licensing Management Tool (C:\windows\system32\slmgr.vbs)
slmgr [MachineName [Username Password]] [Option]
Key -dli Display the current license information with activation
status and partial product key.
-dlv Verbose, similar to -dli but with more information.
-dti Display Installation ID for offline activation
-ipk Key Enter a new product key supplied as xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
-xpr Show the expiry date of current license (if not permanently activated)
-upk Uninstall current installed product key and return license status back to trial state.
-ato Activate Windows license and product key against Microsoft’s server.
-atp Confirmation_ID Activate Windows with user-provided Confirmation ID
Set the KMS server and the port used for KMS activation
(where supported by your Windows edition)
-rearm Reset the evaluation period/licensing status and activation state of the machine
-ckms Clear the name of KMS server used to default and port to default.
-cpky Clear product key from the registry (prevents disclosure attacks)
-ilc License_file Install license
-rilc Re-install system license files
machinename The machine to administer, by default the current local machine.
username An administrator equivalent user account for the computer.
password The password for the user account.
Running slmgr.vbs requires elevated administrator privileges.
C:\windows\system32\slmgr.vbs wkstn0064 administrator password1 -dli
slmgr.vbs -skms 192.168.10.1:8090
slmgr.vbs -skms KMSServer:8090
“One resolution I have made, and try always to keep, is this: To rise above little things” – John Burroughs