OEM Recovery Partition Creator for Windows

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

  1. mikeoke

    mikeoke MDL Novice

    Feb 28, 2010
    10
    1
    0
    #3701 mikeoke, Nov 20, 2024
    Last edited: Nov 22, 2024
    Hello AnarethoS,
    just used your script with new Samsung Book4.
    Everything looks fine, no problem.
    Win11 24H2 image

    I have used your script after I have cleaned Win11 with NTLite and Wn11debloat

    Everything is working and clean.

    Thanks a lot!!

    p.s. found easter eggs in script ;)
    Sysprep.cmd
    Reccomended -->> Recommended
     
  2. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,590
    60
    I redid all my tests (Windows 10 22H2 + Windows 11 24H2) and they worked.

    Did you use the new xml file from 6.0.1 ?
    Also, since I know you are playing with VmWare, can you check before running my script (maybe make a snapshot) to see if the Winre..wim file is really on the recovery partition or if it is in c:\recovery\windowsre ?

    Also, is the size of the Winre.wim small enough to fit on the recovery partition? I had that problem when I did a MUI version of Windows where the winre.wim was now too big to fit on the recovery partition.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. vigipirate

    vigipirate MDL Senior Member

    Feb 24, 2011
    401
    100
    10
    hello Winre.wim partition 1000 Mo
     
  4. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,590
    60
    For those of you that are trying Windows 10 ... did you use the NEW XML file from the new version or old XML file from previous one?
    With the latest version there are somme differences between XML (Windows 10, Windows 11 on supported hardware and Windows 11 on unsupported hardware).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,590
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,590
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Apoly

    Apoly MDL Member

    Aug 21, 2016
    183
    178
    10
    Thank you, this should be useful for customers that tend to break their Windows install.
     
  8. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,590
    60
    Version 6.0.2 is out.

    The new version don't use WMIC anymore (Sysprep.CMD and WInRE Update). I use Powershell instead. A little bit slower but works everythime while WMIC was working only in sysprep since once Windows 11 24H2 is in "user mode", WMIC got removed.

    Also, I dow more pre-check for the WINRE.WIM file before starting the sysprep phase. If anything is missing, you will be notified before the sysprep run so you can fix it. Saddly, I can't really code the fix for the different problem (winre.wim file too big, bad partition layout, mismatch betweed resetcong.xml and autounattend.xml, etc.).

    When the capture is done there is a new warning telling you that the computer will shutdown (push-button) or reboot (capture - full wim).

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. jafarHitech

    jafarHitech MDL Novice

    Aug 30, 2019
    1
    0
    0
    please Help Me I am Using Windows 8.1 X64 Pro OEM with Using Anerethos OEM Recovery Partition Creator using BIOS Options Lets apply but not Work (Error Compliants : -- Dism Capture but not Work error 21 Virtual Disk Service Error This Device is not Empty Error ) How to Solve this Problem (I am Using Tools Recovery 5.0.5)
     
  10. xrononautis

    xrononautis MDL Senior Member

    Mar 30, 2021
    378
    214
    10
    You could also use something like this to test for admin rights and invoke the uac if need be. Compatible with Windows7+
    I liked your approach though! I think I will steal it for my vista script! :)

    Code:
    net session >nul 2>&1
    if not %errorlevel% == 0 (
        powershell -Command "Start-Process '%~f0' -Verb RunAs"
        exit /b
    )
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. mikeoke

    mikeoke MDL Novice

    Feb 28, 2010
    10
    1
    0
    Sorry, to ask for this but is there a problem with your server @AnarethoS
    I get error cloudflare 522
     
  12. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,624
    1,633
    150
    Definitly some error, I could start downloading 602 yesterday:p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. mikeoke

    mikeoke MDL Novice

    Feb 28, 2010
    10
    1
    0
    Are there any mirrors?
    My latest version is v6
     
  14. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,624
    1,633
    150
    Anarethos will fix that soon hopefully :p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. mikeoke

    mikeoke MDL Novice

    Feb 28, 2010
    10
    1
    0
    yes, site is back online ;)
     
  16. Asterix4you

    Asterix4you MDL Novice

    Oct 17, 2017
    16
    0
    0
    Good evening everyone, congratulations on the excellent work done. I wanted to know if there is a size limit of the recovery.ppkg file. It seems to me that if you exceed 5gb something breaks in recovering the image. (Restoring to Factory condition) .
    greetings Massimo