OEM Recovery Partition Creator for Windows

Discussion in 'MDL Projects and Applications' started by AnarethoS, Sep 11, 2010.

  1. Asterix4you

    Asterix4you MDL Novice

    Oct 17, 2017
    9
    0
    0
    #3461 Asterix4you, Jun 9, 2021
    Last edited: Jun 10, 2021
    Hi AnarethoS, I would have this need if you can.
    • After SYSPREP and restart PC, OOBE (no generalize) the active Administrator user with access,
    • ask for Active Directory migration,
    • each time you create users install an .exe file only once.

    Is that possible?

    Windows 10 Enterprise x86 (10.0.19043.1023)
     
  2. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    To prevent Generalization, you must edit the Sysprep.CMD file ans edit the following line :
    START /WAIT C:\Windows\System32\Sysprep\SysPrep.exe /generalize /oobe /quit /unattend:C:\Recovery\OEM\XML\UnAttend.%PROCESSOR_ARCHITECTURE%.Xml
    You may have to modify the referenced XML file also.

    To enable the built-in Administrator account, you can alsway edit the OOBE-Custom.cmd file in the scripts folder and add something like :
    NET USER Administrator /active:yes
    WMIC path Win32_UserAccount WHERE "Name='Administrator' and Domain='%COMPUTERNAME%'" set PasswordExpires=false

    For the directory migration, I don't know. Maybe check for available paramters for the unattend.xml file or play with the OOBE-Custom.cmd file

    For the auto-install of an EXE, you can alway edit the registry for the Default_User and add a key in the RunOnce section ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Please note that I am currently working on testing my solution on Windows 11.

    There is a problem when using the "Full Image - Wim" option.
    WinRE don't automatically mount the volumes and, as such, the capture fails.

    I already have a workaround for that part but I must complete other test before releasing a Windows 11 compatible version.

    Thanks.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    I will also add support for 21H1 (Scanstate files in the package) and I will also update the bood files used for the recovery media in Windows 1X.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Normally, when a new OS is supported, I change the major version. But since I already switched from 4.X to 5.0.0 in the last update and the fact that Windows 11 is basically Windows 10 with a skin, I will just consider it as a minor update (5.0.1).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    5.0.1 is done.

    - Added support for Windows 11
    - Added support for Windows 10 21H1
    - Added the option to install Appx package after OOBE (Windows Store Apps). You must provide the Appx file by using some tools to download them from the Microsoft store OR use Microsoft Store for Business to download all files.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Thank you downloaded 3 Hrs ago when your domain dont have any changelog for this update :)
     
  8. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    True!
    I put the 5.0.1 version on my web site and when I was starting to write my baglog section my GF asked me for something upstars and decided ton continue that the day after telling myelf that no one will download that fast.

    Lol. Guess I was wrong!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Apr 28, 2014
    1,271
    924
    60
    @AnarethoS becareful for the 21H1 you put the build 22000 of ScanState, so is again the 19041...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    upload_2021-7-14_11-58-33.png

    Ok. For 21H1 I put the Windows 11. Don't know why I mixed my files.

    Anyway, for 2004, 20H2 and 21H1 it is the same.

    I will fix that.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    I re-uploaded the Required Files. The 21H1=20H2=2004 for the files.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Apr 28, 2014
    1,271
    924
    60
    Welcome :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. LuCeR0

    LuCeR0 MDL Novice

    Aug 16, 2012
    42
    24
    0
    #3473 LuCeR0, Aug 4, 2021
    Last edited: Aug 4, 2021
    @AnarethoS, muchas gracias por este maravilloso proyecto, ya había realizado anteriormente unas pruebas en Windows 7, ahora hice pruebas en 5 equipos de escritorio, instalando Windows 11 y personalice el archivo ReCreatePartitions.txt, para adaptar a mis necesidades el disco duro, encontrando los siguientes inconvenientes.

    - al iniciar la instalación de windows y lanzar Diskpart (SHIFT+F10) me di cuenta que no siempre es la unidad D:\ para escribir la instrucción para particionar el disco duro siendo necesario buscar en otra unidad por ejemplo DISKPART /S E:\ScriptName.txt

    - Si se tiene instalado en el equipo un Lector de Tarjetas Multi Card Reader , al particionar el disco duro tecleando la instrucción.

    X:\Sources>DISKPART /S D:\ScriptName.txt

    me marcaba el siguiente error en la linea 20 del archivo ReCreatePartitions.txt

    Diskpart redujo correctamente el volumen en. 700 MB
    100 por ciento completado
    Diskpart formateo el volumen correctamente.

    Error del servicio de disco virtual:
    La letra de unidad especifica no esta libre para poder asignarla.


    Nota: la solución fue desconectar el lector de tarjetas multicard.

    - en uno de los equipo donde hice pruebas me salio este inconveniente:

    Deployment Image Servicing and Management tool
    Version: 10.0.22000.1

    Image File : C:\Recovery\OEM\Capture.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    ************************
    Cleaning Old Files
    ************************
    No se pudo encontrar C:\Recovery\OEM\Temp\FindRecovery.txt
    *****************************
    Running Sysprep
    *****************************
    CORRECTO: el proceso con PID 5244 (proceso secundario de PID 5216)
    ha sido terminado.
    ERROR: no se encontró el proceso "WMPNETWK.EXE".


    -Me marco error al querer realizar un medio de recuperación en una unidad USB.
     
  14. Gazer022

    Gazer022 MDL Novice

    Jun 5, 2015
    43
    7
    0
    /resetbase for cleanup windows updates will break the "reset this pc" or It just me.?
     
  15. only for 17763 build or prior ones it will break reset this pc feature but not current builds
     
  16. Gazer022

    Gazer022 MDL Novice

    Jun 5, 2015
    43
    7
    0
    #3476 Gazer022, Aug 12, 2021
    Last edited: Aug 27, 2021
    Maybe there is something wrong with my step for this OEM Recovery when I am testing the Reset Feature. The Recovery from the usb flash drive is working fine.

    Gonna test the again another time.

    [edit]
    I really made a mess. i clean up plus /resetbase the live system before running the recovery setup which make it a double process.
     
  17. LuCeR0

    LuCeR0 MDL Novice

    Aug 16, 2012
    42
    24
    0
  18. vigipirate

    vigipirate MDL Senior Member

    Feb 24, 2011
    397
    98
    10
    idem
    Windows 10 (Error)
     
  19. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Please enable debug mode (debug=1) in settings.ini of the app.

    Also, can you confirm there is SWM/WIM file in \recovery\oem\image folder ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. vigipirate

    vigipirate MDL Senior Member

    Feb 24, 2011
    397
    98
    10
    Hello
    the image system works as soon as I have the bug I send the info back for the moment it works see with LuCeR0