Windows 8 KMS Activation

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

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

    sjaak327 MDL Novice

    Aug 7, 2012
    18
    6
    0
    just copy it from setlocal until the goto:loop line. The only thing that needs to be changed is the yourkmshost, which should be replaced by the ip or FQDN of your kms host.

    Then simply run this in a Windows 7 Enterprise client, (as administrator) and enter the number of activations required.
     
  2. ashoktvm

    ashoktvm MDL Addicted

    Jul 29, 2009
    523
    49
    30
    Number of activation required should be entered "set /p X=how many time do you want to run" here right?
     
  3. sjaak327

    sjaak327 MDL Novice

    Aug 7, 2012
    18
    6
    0
    No, you only change the kmshost, save the file as a batch file, run it (as admin), once you run it, it will prompt for the number, just enter 25 (or whichever number you require).
     
  4. DiGiBoY

    DiGiBoY Guest

    Nice work.
    Very useful information.
    I'll be performing some tests and let you guys know about them.
     
  5. sjaak327

    sjaak327 MDL Novice

    Aug 7, 2012
    18
    6
    0
    ^ yep, that is the site I got it from, allthough I made a small change to the original.

    That small change (/skms) is needed if someone lacks the dns infrastructure to make the required srv record so that clients automatically point to the kms server.
     
  6. hack

    hack MDL Senior Member

    Sep 14, 2009
    293
    252
    10
    Don't we need to remove the REM
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Apoc

    Apoc MDL Novice

    Sep 26, 2012
    9
    0
    0
    #3388 Apoc, Oct 18, 2012
    Last edited by a moderator: Apr 20, 2017
  8. oneextraid

    oneextraid MDL Member

    Jul 29, 2009
    181
    19
    10
    I am trying to understand why we have to go thru so many steps to perform W8 activation. Following are my understandings of the requirements for current W8 activation.

    Windows 8 Requirements:
    We have to setup a VM because W8 does not allow use of Localhost.

    We have to have a 25+ count for activation requests to begin to be successful due to requirement for standard KMS server.

    Previous Solution for Windows 7:
    The original KMSEmulator performed the server side KMS using LocalHost without requiring 25 prior activation requests.

    Question:

    Once the proper KMS activation handshake has been determined, why can't the KMSemulator be upgraded to support this and run on a VM?

    This would avoid the 25+ activation requests and all of the token copying etc.

    Would this be feasible?
     
  9. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,566
    3,874
    120
    Yes, now go ahead and code it... if you can't, this is the next best thing!
     
  10. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,566
    3,874
    120
    #3391 FreeStyler, Oct 18, 2012
    Last edited by a moderator: Apr 20, 2017
    Cleaned up version, replace the red parts with proper values

    actvate.cmd
    Code:
    @ECHO OFF
    setLocal EnableDelayedExpansion
    set /p X=how many time do you want to run ? 
    :loop
    set /a N+=1
    if !N! gtr !X! goto :eof
    CLS
    echo Cycle number: !N!
    echo.
    taskkill /im sppsvc.exe /f
    echo.
    del C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat /q
    attrib -H C:\Windows\System32\*.C7483456-A289-439d-8115-601632D005A0
    del C:\Windows\System32\*.C7483456-A289-439d-8115-601632D005A0 /q
    cscript //nologo %systemroot%\system32\slmgr.vbs /ipk GVLKKEY
    cscript //nologo %systemroot%\system32\slmgr.vbs /skms kms.yourdomain.com:port
    cscript //nologo %systemroot%\system32\slmgr.vbs /ato
    goto :loop
    
     
  11. pisthai

    pisthai Imperfect Human

    Jul 29, 2009
    7,200
    2,273
    240
    Please keep in mind that the min. 25 client count is for Windows 8 (and windows 7 if used) while for Server 2012 that count is min. 5 Server 2012
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. luky

    luky MDL Addicted

    Dec 21, 2008
    729
    33
    30
    #3393 luky, Oct 18, 2012
    Last edited by a moderator: Apr 20, 2017
    set / p X = how many time do you want to Run? What I write here?
     
  13. rrohela

    rrohela MDL Expert

    Sep 1, 2009
    1,610
    1,409
    60
    available local KMS host setup cant activate servers..
     
  14. sjaak327

    sjaak327 MDL Novice

    Aug 7, 2012
    18
    6
    0
    Correct, but as I understand the leaked key is just a client key, so it won't activate any server version.
     
  15. sjaak327

    sjaak327 MDL Novice

    Aug 7, 2012
    18
    6
    0
    As said, the batch file will prompt, so do not change it. Just run it (as admin) and enter the number of times to run.
     
  16. joshu

    joshu MDL Junior Member

    Sep 10, 2012
    70
    7
    0
    Hopefully who ever leaked the KMS host key for client OS has one for server OS and will share ;)
     
  17. LostED

    LostED SVF Patch Lover

    Jul 30, 2009
    7,231
    21,619
    240
    @luky



    when u run the script will ask every time how many time do you want to run ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. TCM

    TCM MDL Addicted

    Aug 25, 2011
    808
    417
    30
    As I understand, we have to use VM because the backed up activation is only for the hardware in the VM. Hardware changes -> host deactivates.