KMS-QADhooker for Localhost Self-Activation

Discussion in 'Windows 10' started by xinso, Apr 17, 2014.

  1. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,092
    24,400
    340
    Yeah, so far he never refused to help me when asked in a post or via several PMs :hug2:. Believe me, some questions could be considered the opposite to qualified or sophisticated, to say it politely (or embarassingly stupid in clear text) :cool2:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. xinso

    xinso MDL Guru

    Mar 5, 2009
    14,016
    14,667
    340
    Yes. And you are always so kind and considerate. Love you, my friend.
     
  3. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Apr 28, 2014
    1,280
    931
    60
    Script begin to be perfect :hypocrite:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,554
    15,642
    270
    Yeah yeah! xinso it's doing great things since a while ago... ;)
     
  5. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,554
    15,642
    270
    #225 Mr.X, May 18, 2014
    Last edited by a moderator: Apr 20, 2017
    Hi xinso,


    I'm trying to integrate some updates to Windows 8.1 with Update using the following command in a cmd prompt window, but it doesnt work:
    Code:
    for %%A in (W:\Upd_x86\KB\*.msu) do (cmd /c "dism /image:W:\win81aio\mount /Add-Package /PackagePath:%%A")
    
    It returns this error: %%A was unexpected at this time.


    Any help appreciated.

    When replied this post will be deleted
     
  6. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,092
    24,400
    340
    #226 s1ave77, May 18, 2014
    Last edited by a moderator: Apr 20, 2017
    Try this:

    Code:
    for /R "W:\Upd_x86\KB" %%A in (*.msu) do (cmd /c "dism /image:W:\win81aio\mount /Add-Package /PackagePath:%%A")
    Or afaik better:

    Code:
    for /R "W:\Upd_x86\KB" %%A in (*.msu) do (dism /image:W:\win81aio\mount /Add-Package /PackagePath:%%A)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,092
    24,400
    340
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,554
    15,642
    270
    #229 Mr.X, May 18, 2014
    Last edited by a moderator: Apr 20, 2017
    Thanks s1ave77, but both commands return the same error.
     
  9. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,092
    24,400
    340
    Do you run the scripts from inside the DISM install folder?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,554
    15,642
    270
    #231 Mr.X, May 18, 2014
    Last edited: May 18, 2014
    Updated dism.exe file was put manually into C:\Windows\System32. Then I open a cmd prompt as admin. change path to W:, run any other previous dism commands from that path (murphy's commands for offline integration) and everything went fine. It's just this loop I'm currently trying to execute.
    I'm working on Windows 8.1 with Update machine to do this job. Dism version: 6.3.9600.17031
     
  11. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,092
    24,400
    340
    Afaik you need the complete DISM folder (matching OS architecture), not only the single EXE :g:. Better copy the whole folder to new location and place script there. Never faced that error with my tool and using several for-loops. The DISM part is started from inside the DISM files folder.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,554
    15,642
    270
    OK s1ave77, may I ask you a favor, could you upload a zipped file containing the folder/s to put it manually within System32 folder? Please.
     
  13. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,092
    24,400
    340
    I'm throtteled in bandwith so i can't. My JATD script from signature is shipped with x64 files in \files\adk\, simply delete the DISM.cmd :cool2:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,554
    15,642
    270
    Seems I need to download adk toolkit because I'm using x86 architecture :p
     
  15. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,092
    24,400
    340
    It's only several MB large. I installed once and copied the folder. Now it works without installation :cool2:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,092
    24,400
    340
    Nope, this needs the adk files, either installed and used via adk own CMD or copied files and used by running best from inside the folder. That way it's nearly foolproof.

    The built-in DISM is mostly meant for /online maintenance on a running Windows but not for offline servicing of WIM files :cool2:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,554
    15,642
    270
    #238 Mr.X, May 18, 2014
    Last edited by a moderator: Apr 20, 2017
    Thanks xinso, the only inconvenience I see, no offense, is that I want a loop for n updates. I guess this code is limited for the named KBs:
    Code:
    :Integrate
    DISM.exe /Mount-Wim /WimFile:install.wim /index:%~1 /MountDir:D:\mount
    for %%A in (KB2919442 KB2919355 KB2932046 KB2959977 KB2937592 KB2938439 KB2934018) do dir /b "msu" 2^>nul | findstr /i %%A >nul&&%INEL1% (Dism /Add-Package /PackagePath:"msu\%%A.msu" /Image:D:\mount)
    DISM.exe /Unmount-Wim /MountDir:D:\mount /commit
    
     
  18. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    8,554
    15,642
    270
    two of the baseline and Windows8.1-KB2934520-x86. These 3 KBs do need specific order. I have separate commands for them. As for the rest of KBs the order don't matter, here's where the loop comes into action.
     
  19. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,092
    24,400
    340
    It's only needed to add KB2959977 and KB2934018 to updated WIMs :cool2:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...