KMS Activate Windows 8.1 (En & Pro) and Office 2013

Discussion in 'Windows 8' started by FaiKee, Oct 25, 2013.

  1. Nucleus

    Nucleus MDL Guru

    Aug 4, 2009
    2,868
    2,950
    90
    @FaiKee - Good work with the OP. Wondered if you had abbodi1406's new Server Service scripts, yep you're on the ball. Good work. :clap3:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. apex2000

    apex2000 MDL Senior Member

    May 6, 2007
    252
    285
    10
    I just did a test using abbodi1406's Server Service scripts from yesterday I think it was, and was very pleased with the results. I found that the scripts worked perfectly, repeatedly, both online and offline. If anyone is interested, this is what I did to set up and activate using abbodi1406's scripts using a scheduled task:

    1 Ran 1-Tap-Adapter.cmd

    2 Ran 2-KMS-Service+TunMirror.cmd

    3 Ran Creat-Task.cmd

    4 Changed task to 'at log on' manually. (Not necessary, but I wanted it to activate at every logon rather than the default weekly activation.)

    5 slmgr -upk (to remove the Windows key) + cscript ospp.vbs /unpkey:<lastfivedigitsofinstalledkey> (in the Office 2013 folder).

    6 Rebooted

    On reboot, a watermark was on the desktop and there was a command window open.

    After a while, the command window disappeared and, at the same time, the watermark went too.

    And I was activated - both 8.1 and 2013 for 180 days.

    I tried this several times both online and offline and it worked every time.,

    Using other scripts - by I cannot remember who at the moment - I found that activation was unreliable on reboot or logon. Sometimes I had to reboot three times before it would activate.

    So it's congrats to abbodi1406 yet again for a beautifully produced piece of work - and one that works every time :worthy::worthy::worthy:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ace2

    ace2 Guest

    #2243 ace2, Nov 20, 2013
    Last edited by a moderator: Apr 20, 2017
  4. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,479
    1,474
    60
    I booted my PCs today. For 2 laptops, tunmirror was ok after 6s, on the 3rd it was ok after more than 2 minutes. This is very erratic.
    I will testing to morrow and keep you informed.
     
  5. qewlpal

    qewlpal MDL Addicted

    Jun 25, 2010
    575
    2,014
    30
    Thanks for all the testing and feedback:)
    KMS_VL_ALL installs the right GVLK for corresponding KMS Client each time it is run, so running slmgr -upk doesn't affect the activation.

    @abbodi1406,
    Are the GVLK's for 8.1/2012 R2 also integrated?
    Sorry if you answered it before, its been quite a long time :(
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Nucleus

    Nucleus MDL Guru

    Aug 4, 2009
    2,868
    2,950
    90
    You have misunderstood my post, or I didn't word it correctly. I'm aware of the 'Smart' features of abbodi1406's great scripts, I wanted Win in a non-activated state (slmgr -upk) before rebooting to test the re-activation via the scheduled task is all (corresponds to your other question) below.

    I may be mis-understanding but there's a whacking great list of GVLK's towards the end of the KMS_VL_ALL.cmd script, including those for Win 8.1 and 2012R2. I'm guessing this is some type of routine to insert the appropriate GVLK for detected Win version? This is what I was testing in my original test results post - as mentioned above.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,213
    90,809
    340
    Of course they are :)
    how we could make use of the current win 8.1 activation without them :D

    Yes, as qewlpal said:
    KMS_VL_ALL installs the right GVLK for corresponding KMS Client ID
     
  8. Nucleus

    Nucleus MDL Guru

    Aug 4, 2009
    2,868
    2,950
    90
    @abbodi1406 - Are we allowed to post feature requests or will you be annoyed!? :mat:

    I've no idea if there will be any more releases of your stuff, it seems pretty complete now with a one off activation solution and a scheduled task solution. Neither do I know if this could be implemented or if so how difficult it may be, but I'm gonna ask anyway... :rolleyes:

    When the scheduled task executes (whenever the user has set it to run), the command prompt window that's on the desktop. Would it be possible for the window to be titled "Scheduled KMS Activation" and blue as you use in KMS_VL_ALL. Could the window show some output, similar to the output from KMS_VL_ALL_Offline.cmd "Attempting to activate...", and "Press any key to continue..." when activation completes?

    This would be in the %SystemRoot%\task.cmd file right? Can it be done, anyone else think that would be good or you prefer it as is?

    Edit: I used my coding skills :rolleyes: (Window title and colour) but could some output in the window be implemented - if enough ppl wanted it?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,213
    90,809
    340
    :hug2:

    you can simply copy and rename "3-Activate-Local.cmd" to task.cmd,
    open it with notepad and change "title KMS_VL_ALL" to "title Scheduled KMS Activation"
    then replace it in C:\Windows folder :D
     
  10. Nucleus

    Nucleus MDL Guru

    Aug 4, 2009
    2,868
    2,950
    90
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. qewlpal

    qewlpal MDL Addicted

    Jun 25, 2010
    575
    2,014
    30
    Of Course :doh:
    Been using Xubuntu 13.10 and forgot some basics:giggle:

    On A Side note, wouldn't it be nice to include your KMS Service script in the Original Post ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. hdzz

    hdzz MDL Novice

    Jan 10, 2013
    15
    15
    0
    #2254 hdzz, Nov 21, 2013
    Last edited by a moderator: Apr 20, 2017
    Code:
    @echo off
    openfiles >nul 2>&1
    if %errorlevel% NEQ 0 goto :UACPrompt
    goto :gotAdmin
    
    :UACPrompt
        echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
        echo UAC.ShellExecute "%~fs0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
        "%temp%\getadmin.vbs"
        del "%temp%\getadmin.vbs"
        exit /b
    
    :gotAdmin
    pushd "%~dp0"
    echo netsh advfirewall firewall add rule name="KMS_VL_ALL" dir=in  program="%~dp0KMS Server.exe" localport=%port% protocol=TCP action=allow remoteip=localsubnet >nul 2>&1
    echo netsh advfirewall firewall add rule name="KMS_VL_ALL" dir=out  program="%~dp0KMS Server.exe" localport=%port% protocol=TCP action=allow remoteip=localsubnet >nul 2>&1

    The expression %~fs0 will affect the following expression start with %~,like %~dp0.
    If the folder %~dp0 has more than 8 characters ,it will use short name and there is a ploblem that the netsh command and firewall can't work properly with short name.

    Code:
    netsh advfirewall firewall add rule name="KMS_VL_ALL" dir=in  program="C:\Users\
    sh\Desktop\123456~1\KMS Server.exe" localport=1688 protocol=TCP action=allow rem
    oteip=localsubnet
    Although the netsh command returns success, because the path contains ~ (123456~1), this rule does not work properly.

    So we should avoid using %~s ,only using %~f0 or %0.

    But there is a bug on all windows if %~f0 or %0 contains () ,
    the command
    echo UAC.ShellExecute "
    %~f0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
    don't work,even if you use right button run the bat with administrator privileges.



    I have a solution searching from google and fixed it.

    echo UAC.ShellExecute "cmd", "/c " ^& """"%0"""","", "runas", 1 >> "%temp%\getadmin.vbs"

    I think that the command will work well, even if the path has spaces or special characters such as brackets().
     
  13. apex2000

    apex2000 MDL Senior Member

    May 6, 2007
    252
    285
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,213
    90,809
    340
    You think or you are sure? :D
    thanks

    anyway, UACPrompt is just a "supplementary" add, and the user is always directed to run the script as administrator :rolleyes:
     
  15. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,213
    90,809
    340
    All the other files are now in sub-folder "Data" :)
    as i said, this is just for organizing so the scripts that user needs are clear to him without much files around.

    No, the scripts now use different path for the Data files, so it will not work with previous release.
     
  16. apex2000

    apex2000 MDL Senior Member

    May 6, 2007
    252
    285
    10
    I must be going blind!! I saw the 'x64' and 'x86' folders in the 'Data' folder but for some unknown reason didn't see any of the other files :eek:

    Later today, I will test everything and report back.

    Love the way you are never satisfied and always look to improve your work - and you succeed in doing that very well :tankyou::clap3::clap:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. apex2000

    apex2000 MDL Senior Member

    May 6, 2007
    252
    285
    10
    Excellent news! Thanks abbodi1406

    With the latest scripts from abbodi1406, I have just finished testing a scheduled task both while connected to the Internet and then while disconnected from the Internet.

    This is how I did it, using the scripts written by abbodi1406:

    First run (connected)

    1: Run 1-Tap-Adapter.cmd

    2: Run 2-KMS-Service+TunMirror.cmd

    3: Run Create-Verbose-Task.cmd

    4: Change task to 'at log on' manually. (Not necessary; a personal preference.)

    ======================================

    slmgr -upk (in admin prompt, to remove the Windows key)

    cscript ospp.vbs /unpkey:<lastfivedigitsofinstalledkey> (in the Office 2013 folder; to remove Office key)

    ======================================

    View attachment 25486

    The cmd window above came up, installed the product keys and then activated both 8.1 and 2013, and then the watermark disappeared.

    ======================================

    To remove:

    A: Run Delete-Task.cmd

    Run 2: and 1: (above) in that order.

    ======================================

    I then disconnected from the Internet and repeated the First run above while offline.

    The result was the same as above (i.e. activation was successful) but the watermark still remained on the desktop.

    I reconnected to the Internet, rebooted and the watermark disappeared!!

    Conclusion: abbodi1406 has done it again. His scripts are even better than before and - most importantly - they work perfectly, repeatedly.

    :worthy::worthy::worthy::worthy::worthy::worthy::worthy::worthy::worthy:

    Thank you, my friend.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. Nucleus

    Nucleus MDL Guru

    Aug 4, 2009
    2,868
    2,950
    90
    Thanks for the update.

    Delete-Task.cmd is a small but welcome addition. Task Verbose is most welcome, it's my preferred option so thanks a mil for implementing it and your continued development on this great bundle.

    Tested thoroughly, connected/disconnected - Gravy all the way 100% success every time.

    Well done again. :clap3:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...