murphy78 DiskPart and Apply Image Script

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

  1. crashnburn

    crashnburn MDL Addicted

    Joined:
    Mar 18, 2010
    Messages:
    530
    Likes Received:
    20
    Trophy Points:
    30
    What Script Options did you choose to use?
     
  2. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Joined:
    Apr 28, 2014
    Messages:
    1,046
    Likes Received:
    713
    Trophy Points:
    60
    "F" Fast setup and recovery :)
     
  3. crashnburn

    crashnburn MDL Addicted

    Joined:
    Mar 18, 2010
    Messages:
    530
    Likes Received:
    20
    Trophy Points:
    30
    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

    Joined:
    Apr 28, 2014
    Messages:
    1,046
    Likes Received:
    713
    Trophy Points:
    60

    I am MBR partition, I don't have UEFI in my computer...
     
  5. crashnburn

    crashnburn MDL Addicted

    Joined:
    Mar 18, 2010
    Messages:
    530
    Likes Received:
    20
    Trophy Points:
    30
    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

    Joined:
    Apr 28, 2014
    Messages:
    1,046
    Likes Received:
    713
    Trophy Points:
    60
    I only 2 partitions : One is 4,9 Go for Recovery and all for System
     
  7. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Joined:
    Apr 28, 2014
    Messages:
    1,046
    Likes Received:
    713
    Trophy Points:
    60
    Hello ! For the new build 10586, just change "choice.exe" to 10586 and the two cab since the SDK ? :)
     
  8. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Joined:
    Apr 28, 2014
    Messages:
    1,046
    Likes Received:
    713
    Trophy Points:
    60
    All work ! :clap:
     
  9. Ehtrakiyushi

    Ehtrakiyushi Guest

    Good stuff here.
     
  10. Ehtrakiyushi

    Ehtrakiyushi Guest

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

    Ras0 MDL Novice

    Joined:
    May 7, 2012
    Messages:
    33
    Likes Received:
    15
    Trophy Points:
    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

    Joined:
    Apr 28, 2014
    Messages:
    1,046
    Likes Received:
    713
    Trophy Points:
    60
  13. sebus

    sebus MDL Guru

    Joined:
    Jul 23, 2008
    Messages:
    6,201
    Likes Received:
    1,945
    Trophy Points:
    210

    One or the other is wrong?
     
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Joined:
    Feb 19, 2011
    Messages:
    12,067
    Likes Received:
    55,424
    Trophy Points:
    340
    The other

    setup = index 2
     
  15. Enthousiast

    Enthousiast MDL Tester

    Joined:
    Oct 30, 2009
    Messages:
    35,561
    Likes Received:
    59,620
    Trophy Points:
    450
    Can't we just delete index 1, for normal install it's not used?
     
  16. hypedave

    hypedave MDL Member

    Joined:
    Oct 14, 2014
    Messages:
    129
    Likes Received:
    30
    Trophy Points:
    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

    Joined:
    Oct 30, 2009
    Messages:
    35,561
    Likes Received:
    59,620
    Trophy Points:
    450
    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".

     
  18. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Joined:
    Apr 28, 2014
    Messages:
    1,046
    Likes Received:
    713
    Trophy Points:
    60
    #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 :(
     
  19. murphy78

    murphy78 MDL DISM Enthusiast

    Joined:
    Nov 18, 2012
    Messages:
    6,943
    Likes Received:
    10,704
    Trophy Points:
    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

    Joined:
    Nov 18, 2012
    Messages:
    6,943
    Likes Received:
    10,704
    Trophy Points:
    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?