OEM Recovery Partition Creator for Windows

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

  1. The_Guardian

    The_Guardian Contributor

    May 7, 2012
    2,054
    6,803
    90
    after you install what apps and drivers you wish you then reboot just for good measure then when back into audit mode close the sysprep window then navigate to where the recovery install software is and run the install.cmd file as admin (right click and run as admin)....it will then sysprep on its own and reboot to make recovery partition (you will see it on your screen). After this is completed it will say something like it was successful and ready to give to end user. Go ahead and boot up computer to test it...let it go through the oobe and setup user name for testing. Once at desktop check to see if recovery tools have been installed (will show under start button programs. Try to then recover it to make sure it works. If that works then next during bios bootup hit F7 and see if you enter recovery partition and if so then exit. You now know that everything works so go back and boot to desktop and enter recovery tools and recovery it again then it is ready to give to end user. Hope this helps.
     
  2. nick@3btech.net

    [email protected] MDL Novice

    Feb 25, 2012
    48
    4
    0
    This may be a little premature...but I am using technets recently released Windows 8.1 ISO. I am noticing that there is no winre.wim after the installation of windows in C:\Windows\System32\Recovery\.
    Obviously the capture process will not continue when it gets to this part. "IF NOT EXIST C:\Windows\System32\Recovery\Winre.Wim GOTO ERRORNOWINRE".
    Does anyone know where the location of this if now in 8.1, if anywhere??
     
  3. nick@3btech.net

    [email protected] MDL Novice

    Feb 25, 2012
    48
    4
    0
    UPDATE: The winre.wim and .xml files are already on the hidden recovery partition after windows install. looks like we no longer need to copy them to that location from system32\recovery. I am editing some of the scripts now just to get it to run through and look for any other issues in the mean time.
     
  4. Flipp3r

    Flipp3r MDL Guru

    Feb 11, 2009
    2,008
    957
    90
    I can confirm. When I performed an unattend & boot up in Audit mode, Winre was already copied to the Recovery/tools partition & enabled...

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. nick@3btech.net

    [email protected] MDL Novice

    Feb 25, 2012
    48
    4
    0
    I was able to sort through the "install.cmd" file and found a way around the winre.wim errors...here is what I changed...
    ORIGINAL:
    ECHO ==============================================
    ECHO BACKUP ORIGINAL WINDOWSRE
    ECHO ==============================================
    ATTRIB -S -R -H C:\Windows\System32\Recovery\*.* /S
    IF NOT EXIST C:\Windows\System32\Recovery\Winre.Wim GOTO ERRORNOWINRE
    IF NOT EXIST C:\Windows\System32\Recovery\Backup MD C:\Windows\System32\Recovery\Backup
    IF NOT EXIST C:\Windows\System32\Recovery\Backup\ReAgent.xml COPY C:\Windows\System32\Recovery\ReAgent.xml C:\Windows\System32\Recovery\Backup\ReAgent.xml
    IF NOT EXIST C:\Windows\System32\Recovery\Backup\WinRE.Wim COPY C:\Windows\System32\Recovery\WinRE.Wim C:\Windows\System32\Recovery\Backup\WinRE.Wim




    ECHO ==============================================
    ECHO COPYING WINDOWSRE
    ECHO ==============================================
    MD %RECOVERYLETTER%:\Capture
    MD %RECOVERYLETTER%:\Recovery\WindowsRE
    MD %IMAGELETTER%:\RecoveryImage
    COPY C:\Windows\System32\Recovery\WinRE.Wim %RECOVERYLETTER%:\Recovery\WindowsRE\WinRE.Wim
    COPY C:\Windows\System32\Recovery\WinRE.Wim %RECOVERYLETTER%:\Capture\WinRE.Wim
    COPY C:\Windows\Boot\DVD\PCAT\Boot.Sdi %RECOVERYLETTER%:\Recovery\WindowsRE\Boot.Sdi
    COPY C:\Windows\Boot\DVD\PCAT\Boot.Sdi %RECOVERYLETTER%:\Capture\Boot.Sdi
    COPY ".\RecoveryFiles\*.*" %IMAGELETTER%:\RecoveryImage


    NEW:
    ECHO ==============================================
    ECHO BACKUP ORIGINAL WINDOWSRE
    ECHO ==============================================
    ATTRIB -S -R -H C:\Windows\System32\Recovery\*.* /S
    ATTRIB -S -R -H %RECOVERYLETTER%:\Recovery\*.* /S
    IF NOT EXIST %RECOVERYLETTER%:\Recovery\WindowsRE\Winre.wim GOTO ERRORNOWINRE
    IF NOT EXIST C:\Windows\System32\Recovery\Backup MD C:\Windows\System32\Recovery\Backup
    IF NOT EXIST C:\Windows\System32\Recovery\Backup\ReAgent.xml COPY %RECOVERYLETTER%:\Recovery\WindowsRE\ReAgent.xml C:\Windows\System32\Recovery\Backup\ReAgent.xml
    IF NOT EXIST C:\Windows\System32\Recovery\Backup\Winre.wim COPY %RECOVERYLETTER%:\Recovery\WindowsRE\Winre.wim C:\Windows\System32\Recovery\Backup\Winre.wim




    ECHO ==============================================
    ECHO COPYING WINDOWSRE
    ECHO ==============================================
    MD %RECOVERYLETTER%:\Capture
    MD %IMAGELETTER%:\RecoveryImage
    COPY %RECOVERYLETTER%:\Recovery\WindowsRE\Winre.wim %RECOVERYLETTER%:\Capture\Winre.wim
    COPY %RECOVERYLETTER%:\Recovery\WindowsRE\boot.sdi %RECOVERYLETTER%:\Capture\boot.sdi
    COPY ".\RecoveryFiles\*.*" %IMAGELETTER%:\RecoveryImage
     
  6. gr1226

    gr1226 MDL Novice

    Oct 3, 2010
    1
    0
    0
    Hi Satya
    I know I'm a few months behind this but did you manage to solve your problem? I did find that I when used the oem partition creator I could install the dell backup software during sysprep this then done its "thing" and was able to recover the partition with the dell recovery manager after completing the sysprep for genralization! If you install the software after creating the partitions you will encounter various errors!
    Hope this helps
     
  7. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Hi everyone!

    I'm back from vacation. I am still working on the DVD Creator for Windows 8. Near completion for the coding. I still have a lot to test before releasing beta version. Once Windows 8 DVD version will be 100% working, I will start to work on Windows 8.1 support. Once Windows 8.1 support will be completed, I will try to implement DVD media to Windows 7.

    As for the WinRE.wim file already on the recovery partition with Windows 8.1, Windows 8 as the same "problem" when not using the Unattend.Xml file. I found that running "C:\Windows\System32\Sysprep\Sysprep.exe /audit /reboot" move the file back to C:\Windows\System32\Recovery folder. You can try that prior doing anything else on your Windows 8.1 installation. Doing so may prevent you to modify my installation file. Let me know if it works!

    Thanks for your patience everyone! BTW, I tried to answer all email and PM I got. Hope I did not forgot anyone.

    Thanks and have a nice day!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. The_Guardian

    The_Guardian Contributor

    May 7, 2012
    2,054
    6,803
    90
    Hope you had a good vacation. Good to see you back.
     
  9. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,589
    1,584
    150
    F-in A you're back^^
     
  10. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Thanks!

    Yes it was good. Decided to visit Ontario a little bit this time. But as always, it was too short!
     
    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
    Version 1.3.16-Alpha 1 is out. This version gives you the option to create DVD media for Windows 8.

    Lot of testing to do.

    Scenario to test :
    UEFI : WIM on the first partition - Done - Tested by Anarethos
    UEFI : WIM on the last partition
    BIOS : Wim on the first partition
    BIOS : Wim on the last partition
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. samehlandous

    samehlandous MDL Novice

    Sep 14, 2013
    1
    0
    0
    HI

    PLEASE HELP

    MY LAPTOP MINI AND I TRY TO INSTALL USING 2 USB DISK....BUT THERE ERROR MESSAGE VIEW

    "setup was unable to create a new system partition or locate an existing system partition"

    there is any way to resolve this

    thanks
     
  13. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Use only 1 USB key to install Windows. Copy the AutoUnattend.xml fil to the root of it and try again.

    Also, if you try to install without the AutoUnatted.xml, does in works?

    Most "mini" laptop support only BIOS/MBR and not UEFI/GPT, use the good file!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. lnstevens1976

    lnstevens1976 MDL Junior Member

    Oct 16, 2012
    72
    6
    0
    I have to say thank you to AnarethoS. I'm a Microsoft Registered Refurbisher and I install additional software onto computers we refurbish before sending them out to the clients. Prior to finding and using this I was looking at spending hundreds (and I do mean hundreds, close to a thousand) on a recovery system someone else offers (not microsoft, but linked from them).

    This has saved me that money and given me a way for customers to return to factory (refurbished) state without having to reinstall all the software, etc...

    So, for anyone else that is, this is the greatest tool yet!
     
  15. geabo

    geabo MDL Junior Member

    Mar 16, 2012
    67
    13
    0
    Hello AnarethoS

    i used the recoverytool on my own and my friends computers and today kaspersky found Trojan Horse with the name
    Backup done: Trojan.Win32.Llac.dlqs 21-09-2013 20:18:11

    x:\div_soft\basic1.3.15\wim - first partition\windows 7 recovery tools\installer\winrex86\sources\recovery\tools\fullrecovery\recoveryrex86.exe

    maybe its not safe to use the recovery solution without being hacket ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    My code is safe. My EXE are compressed with UPX and sometime detected as false positive. Use another virus scanner and you will see for yourself.

    If you feel unsafe, install AutoIt on a computer and recompile the needed AU3 file by yourself.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. geabo

    geabo MDL Junior Member

    Mar 16, 2012
    67
    13
    0
    ok and i feel safe with using your great recoverytool

    i now tryed to compile the source with AutoIt and kaspersky find only that it's the recoveryrex86.exe that is infected and not the recoveryreAmd64.exe and thats strange, it's using the same code

    and i made a new settings.ini with Danish Translation
    but there is missing some off the danish text i Windows when recoverytool is running
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. luxcer

    luxcer MDL Novice

    Jan 15, 2013
    32
    4
    0
    win 8.1 errore unattend .xml last partition for formatting and error winre

    :biggrin: Hi I really like your project with Windows 7 is fantastic, with Windows 8 works great with both the mbr that uefi version, now I'm trying running Windows 8.1 and I am having problems with WIM on the last partition and unattend.xml, by 1000 gb recovery creates, msr, 150 mb from system but not the recovery from 12 gb and returns error that misses winre to capture the system and install the recovery media.
    Help please. :worthy:
     
  19. Mihiranpura

    Mihiranpura MDL Novice

    Dec 28, 2012
    1
    0
    0
    Is this working for which have both SSD and HDD in laptop?
     
  20. luxcer

    luxcer MDL Novice

    Jan 15, 2013
    32
    4
    0
    version 2.11 for Windows 7 on my pc at home and Windows 8 are perfectly with both mbr that work perfectly well I installed uefi even to friends.
    running Windows 8.1 problems while creating the recovery partition from 12 gb that is not created and misses the sysprep.exe.
    I had to change one part of the script in it-it ( my Windows 8.1 is italian dvd ) and installed the recovry otherwise not installed now I have yet to try it using the basic Version 1.3.16-Alpha 1