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.



Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: