murphy78 DiskPart and Apply Image Script

Discussion in 'Scripting' started by murphy78, Apr 2, 2014.

  1. crashnburn

    crashnburn MDL Senior Member

    Mar 18, 2010
    479
    19
    10
    What Script Options did you choose to use?
     
  2. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Apr 28, 2014
    844
    484
    30
    "F" Fast setup and recovery :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. crashnburn

    crashnburn MDL Senior Member

    Mar 18, 2010
    479
    19
    10
    What kind of partitions did it create? And what kind of partitions does your installed final Win 10 Enterprise Disk have?
     
  4. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Apr 28, 2014
    844
    484
    30

    I am MBR partition, I don't have UEFI in my computer...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. crashnburn

    crashnburn MDL Senior Member

    Mar 18, 2010
    479
    19
    10
    Did it create single MBR partition or does it have a 100 / 200 MB partition before it like Win 8?
     
  6. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Apr 28, 2014
    844
    484
    30
    I only 2 partitions : One is 4,9 Go for Recovery and all for System
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Apr 28, 2014
    844
    484
    30
    Hello ! For the new build 10586, just change "choice.exe" to 10586 and the two cab since the SDK ? :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Apr 28, 2014
    844
    484
    30
    All work ! :clap:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Ehtrakiyushi

    Ehtrakiyushi Guest

    Good stuff here.
     
  10. Ehtrakiyushi

    Ehtrakiyushi Guest

    I will develop a Dism builder for WinPE.
     
  11. Ras0

    Ras0 MDL Novice

    May 7, 2012
    31
    15
    0
    When I select multi-boot it wipes all disk to create recovery partition. I can't create multiple recovery partition for each volume on same disk. How did you do that murphy?
     
  12. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Apr 28, 2014
    844
    484
    30
    Multi-lang work ! :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. sebus

    sebus MDL Guru

    Jul 23, 2008
    6,028
    1,840
    210

    One or the other is wrong?
     
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    9,239
    34,185
    300
    The other

    setup = index 2
     
  15. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    21,433
    29,363
    390
    Can't we just delete index 1, for normal install it's not used?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. hypedave

    hypedave MDL Member

    Oct 14, 2014
    129
    30
    10
    Lost the previous versions of this script and had to start from scratch. Thanks for the new updated version. Anyway possible you can update the install instructions to build this into a WinPE 10 1511. Thanks for all you do.
     
  17. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    21,433
    29,363
    390
    Murphy78 did tell me this by pm:

    Extract the cabs and place the exe in "windows\system32" and the mui in "windows\system32\en-us".

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Apr 28, 2014
    844
    484
    30
    #98 Chibi ANUBIS, Apr 26, 2016
    Last edited by a moderator: Apr 20, 2017
    Hello murphy ! :)
    I have a error here :
    Code:
    :IMAGESELECTION
    SET INDEX=
    CLS
    ECHO ===============================================================================
    ECHO =============================== INDEX SELECTION ===============================
    
    :Display-Indexes
    :s1ave77's dism get-wiminfo loop. Thx s1ave77!
    :Just swapped the findstr for a find /i "" so I wouldn't need to add findstr to the distribution
    TYPE X:\IMAGELIST.TXT
    ECHO.
    ECHO ========================== SELECT INDEX OR Q TO EXIT ==========================
    :DONT USE NESTED SET /P command, use goto: with errorlevel to avoid if desired
    SET INPUT=
    SET /P INPUT="Please select an Index Number or Q to exit to the Main Menu: "
    IF NOT DEFINED INPUT GOTO :IMAGESELECTION
    IF /I '!INPUT!'=='Q' (
    SET FASTSETUP=0
    GOTO :MAINMENU
    )
    SET INDEX=!INPUT!
    In INDEX SELECTION the script say have no index available, but if I tape 1, the script show the index correctly :(
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    6,721
    10,281
    210
    Yes, sorry. I made the instructions when it was designed for single index ADK only and edited it poorly some other time.
    I think I've cleared the instructions up on that part.
     
  20. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    6,721
    10,281
    210
    #100 murphy78, Apr 27, 2016
    Last edited by a moderator: Apr 20, 2017
    (OP)
    The only thing I can think of is that it cannot create the text file that lists the setup indexes for some reason. You are using this from boot setup, correct?