Windows 7/8 Activation via Script

cscript "C:\Windows\System32\Slmgr.vbs" /dlv > c:\WindowsActivation.txt
cscript "C:\Windows\System32\Slmgr.vbs" /ipk [WINDOWS Key]
cscript "C:\Windows\System32\Slmgr.vbs" /skms [KMS SERVER HOSTNAME OR IP ADDRESS]:[PORT]
cscript "C:\Windows\System32\Slmgr.vbs" /ato
cscript "C:\Windows\System32\Slmgr.vbs" /dlv >> c:\WindowsActivation.txt

Save this code as a file with “.cmd” extension. This must run from an elevated command prompt.

  • /ato is the activation switch.
  • /ipk attempts to install a 5X5 product key with hyphens.
  • /skms  specifies the name and, optionally, the port of the KMS host computer to contact.
  • /dlv displays detailed license information.

Resources:

http://technet.microsoft.com/en-us/library/dn502540.aspx

 

Leave a Reply

%d bloggers like this: