murphy78 DiskPart and Apply Image Script

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

  1. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,008
    251
    60
    when you say that you can boot to winre by running "reagentc /boottore" , does this concern win7 or win8 ?
     
  2. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,418
    11,685
    240
    winre is included in all versions from vista and up afaik
     
  3. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,418
    11,685
    240
    You could probably find a tool to do it, but it would be rather pointless as it would be easier to just re-install windows.
    The recovery partition is really only a thing for windows 8.x
     
  4. Flipp3r

    Flipp3r MDL Guru

    Feb 11, 2009
    2,007
    956
    90
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,008
    251
    60
    yes in a certain way, you can find this pointless as you can simply reinstall the windows version as you said but the advantage of this partition is that you can reinstall your windows version without the need of intervening during the install, it is reinstalled automatically, that is what the recovery partition is for.
     
  6. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,008
    251
    60
    thank you, i've already started to test this method and you are right this is exactly what i'm looking for, once i finish to test the method, i will come here to tell if it worked.
     
  7. Flipp3r

    Flipp3r MDL Guru

    Feb 11, 2009
    2,007
    956
    90
    Just be sure not to install any antivirus/anti malware while in Audit mode else it won't sysprep & capture correctly...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,656
    103,435
    450
    Windows 7 SP1 Recovery using the 1.2.6 script in a 8.1 boot.wim on a win 7 ISO with install.esd:

    Pics: http://imgur.com/a/KD1U9 (read from bottom to top)
     
  9. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,008
    251
    60
    God, i had missed that option in the menu, i had seen it but didn't think it was related to recovery partition.
    i've just tested it and it worked like a charm :)
    Once again thank you.
     
  10. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,008
    251
    60
    just a quick correction, if you use murphy78's sript, you will have to press on F1 at startup to access to winre and not F7 as it is mentionned in the screens.
     
  11. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,656
    103,435
    450
    #171 Enthousiast, Jul 15, 2017
    Last edited: Jul 15, 2017
    Actually it was F8 to boot to the menu and select Repair my computer and next you get the window i showed before. If you press F1 to fast it would start bios setup. But it is possible to edit the specific Function key for directly entering the winre environment too.

    [​IMG]

    [​IMG]
     
  12. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,008
    251
    60
    #172 mehdibleu, Jul 16, 2017
    Last edited: Jul 16, 2017
    yes you can press F8 then choose repair option to boot into winre but it works with F1 as well, i've tested it and at startup, pressing F1 allows to boot into winre as well.
    Murphy78 created the script in such a way that booting to winre is accessible by pressing F1 at startup and he mentionned it in the first post as you can read below :

    3) Set the WINRE boot key to F1 during boot. You can hold f1 during boot to go straight to the Recovery options
    You should still use f8 in the boot menu while over the appropriate multi-boot option if multi-booting tho.

    if your machine is programmed to access the bios setup by pressing F1, it won't work in that case and you will have to press F8 to boot into winre

    By the way , i don't have the option "Microsoft Diagnostics and Recovery Toolset" in the menu when i boot into winre , is this option included in the script ?
    i see the "Reinstall windows" option but the other option does not appear in the menu, how come ?
    do you have to add or set something in the script to have that option in the winre menu ?

    Maybe this option is included for win8.1 and win10 but not for win7 ?
    Once again, i remind everyone that i use install.esd file from win7 that i integrated into win8.1 iso to be able to install win7 in the machine as win7 iso does not support esd files.
     
  13. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,656
    103,435
    450
    MS DaRT can be integrated manually or by MSMG Toolkit.

    You can select it to be only installed into Winre.wim.
     
  14. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,008
    251
    60
    okay but how do you integrate it ?
     
  15. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,656
    103,435
    450
    Murphy78 used to have easy copy/paste projects for dart, lately MSMG has them uptodate in his MSMG Toolkit.
     
  16. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,008
    251
    60
    could you be more explicit ?
    how do we integrate Ms Dart into winre.wim ?
     
  17. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,008
    251
    60
    @murphy78 : hi,

    you mentionned in your first post that winregcfg cabs are used to make recovery options work.

    So by integrating these winregcfg cab files into boot.wim, we logically should be able to use recovery options.

    But I had a thought in my head here, if i'm correct recovery options are already present in win8.1 and win10. Microsoft have made these recovery options integrated by default into win8.1 and win10 since the release of win8.1 in 2013.

    So logically if you want to install win8.1 or win10 then use recovery options later, no need to add these winregcfg cabs into boot.wim as recovery options (e.g : resetpc option) are integrated by default in win8.1 and win10 as i've just said. Do you agree with that ?
     
  18. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,418
    11,685
    240
    Short answer: No
    winrecfg is a tool designed specifically for boot.wim to be used in place of reagentc.
    TBH I don't know why they didn't just adjust reagentc to be compatible with different OS and architectures and such, but *shrug*
     
  19. mehdibleu

    mehdibleu MDL Expert

    Jun 14, 2017
    1,008
    251
    60
    #179 mehdibleu, Aug 2, 2017
    Last edited: Aug 2, 2017
    ok but what's the point of using winrecfg ? because as i said in the previous post recovery options are already present by default in win8 and win10.
    so that means logically that you can for example resetpc for win8 and win10 successfully without the need of using winrecfg.
     
  20. Flipp3r

    Flipp3r MDL Guru

    Feb 11, 2009
    2,007
    956
    90
    If you've just extracted your wim to say w: then you can just use w:\windows\system32\reagentc to configure winre.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...