Windows 8 KMS Activation

Discussion in 'Windows 8' started by The_Spider, Aug 6, 2012.

Thread Status:
Not open for further replies.
  1. chuckles

    chuckles MDL Junior Member

    Oct 29, 2007
    95
    26
    0
    I installed Windows 8 Ent as a virtual using Hacks files on a windows 2012 server activated with by dreamspark key. Then on my machine I use everyday I placed this bat file on my c:/ drive and using the built in task scheduler I scheduled it to run everytime I start my computer, which is usually once a day. My everyday machine is Windows 8 Ent and each time it starts it runs the bat file I edited from the loop file provided earlier.

    Here is script as I edited it.


    taskkill /im sppsvc.exe /f
    net stop sppsvc /y
    net stop sppsvc /y
    net stop sppsvc /y
    del C:\Windows\System32\spp\store\tokens.dat /q
    del C:\Windows\System32\spp\store\tokens.dat.bak /q
    attrib -H C:\Windows\System32\spp\store\data.dat
    del C:\Windows\System32\spp\store\data.dat /q
    del C:\Windows\System32\spp\store\cache\cache.dat /q
    rem net start sppsvc /y
    cscript %systemroot%\system32\slmgr.vbs -ipk GVLKKEY
    cscript %systemroot%\system32\slmgr.vbs /ckms
    cscript %systemroot%\system32\slmgr.vbs /skms kms.yourdomain.com
    cscript %systemroot%\system32\slmgr.vbs /ato


    No need for a virtual machine client. Every time it starts it runs this modified script and ups the count by 1. In a month it will be 30+.

    NOTE: First I got my count to 25 by using the original script originally posted I believe by rrohela.

    Here is script for windows 8 as originally posted.


    REM Increment KMS to 25 so it starts activating clients
    REM save as a bat file.
    REM Windows 8 Enterprise/pro inbuilt KMS Client key used in this one.
    setLocal EnableDelayedExpansion
    set /p X=how many time do you want to run
    :loop
    set /a N+=1
    if !N! gtr !X! goto :eof
    echo your task goes here
    taskkill /im sppsvc.exe /f
    net stop sppsvc /y
    net stop sppsvc /y
    net stop sppsvc /y
    del C:\Windows\System32\spp\store\tokens.dat /q
    del C:\Windows\System32\spp\store\tokens.dat.bak /q
    attrib -H C:\Windows\System32\spp\store\data.dat
    del C:\Windows\System32\spp\store\data.dat /q
    del C:\Windows\System32\spp\store\cache\cache.dat /q
    rem net start sppsvc /y
    cscript %systemroot%\system32\slmgr.vbs -ipk GVLKKEY
    cscript %systemroot%\system32\slmgr.vbs /ckms
    cscript %systemroot%\system32\slmgr.vbs /skms kms.yourdomain.com
    cscript %systemroot%\system32\slmgr.vbs /ato
    goto :loop

    Such fun. No client needed.

    Chuck
     
  2. rrohela

    rrohela MDL Expert

    Sep 1, 2009
    1,610
    1,409
    60

    It is required coz in every run script will delete activation data to generate new ID & key will lost. So key is required for every loop

    Thx
     
  3. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,092
    24,404
    340
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Superfly

    Superfly MDL Expert

    Jan 12, 2010
    1,142
    543
    60
    Yup - a bit hairy at first when your activation goes :eek: - but it returns again - not for the feint-hearted :p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. lunar21

    lunar21 MDL Addicted

    Dec 14, 2008
    753
    270
    30
    hey how do I change the port used by the KMS? I want to change it to something I know might work as for some reason when I try my URL to activate it cant find it yet according to many sites and my router port 1688 is open.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,566
    3,872
    120
    Isn't there anything you can do without asking? rtfm!
    slmgr.vbs /sprt PORT NUMBER
     
  7. lunar21

    lunar21 MDL Addicted

    Dec 14, 2008
    753
    270
    30
    #3468 lunar21, Oct 19, 2012
    Last edited by a moderator: Apr 20, 2017
    Well I did not mean that but thats for the quick answer anyways :). I did some searching and found what I needed. If you want to change your KMS listening port just type this in an admin cmd window:
    Code:
    SLMgr.vbs /SPrt xxxx
    where xxxx = the new port number

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,566
    3,872
    120
    #3469 FreeStyler, Oct 19, 2012
    Last edited by a moderator: Apr 20, 2017
    Make sure your Windows Firewall has opened port 1688 as well, eg:
    Code:
    netsh advfirewall firewall set rule name="Key Management Service (TCP-In)" new enable=yes
    The command above should return:
    Code:
    Updated 2 rule(s).
    Ok.
     
  9. ashoktvm

    ashoktvm MDL Addicted

    Jul 29, 2009
    523
    49
    30
    I am able to run VMWare windows 8 and 7 in my desktop and able to run KMS server. But in my laptop even after giving bridge and NAT i am unable to get lan connection and unable to ping the KMS server by network machines. I am using wireless, will that be the problem?
     
  10. rrohela

    rrohela MDL Expert

    Sep 1, 2009
    1,610
    1,409
    60
    To successfully ping open ICMP echo port & for activation open KMS port on host.
     
  11. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,566
    3,872
    120
    As already said i did not tested it, but i simply assumed 'activate the previous generation' would not mean 'activate the previous generations'
    Anyway, good to know it works for Vista as well
     
  12. ashoktvm

    ashoktvm MDL Addicted

    Jul 29, 2009
    523
    49
    30
    Ok I think i am not being clear. I am using the same VM i used on desktop and moved it to use on laptop. In that I am not able to ping the KMS server (VM machine) which i run in the same laptop.
     
  13. Mr Been

    Mr Been MDL Senior Member

    Feb 24, 2008
    262
    70
    10
    Has this KMS Host key to be activated at Microsoft, and how often can this be done?
     
  14. pisthai

    pisthai Imperfect Human

    Jul 29, 2009
    7,200
    2,273
    240
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...