OEM Recovery Partition Creator for Windows

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

  1. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Another question... when you where using the XML file, was the computer booting in AUDIT mode or not? In audit mode, you automatically log-in using the Administrator account and there is a SYSPREP windows after each reboot that shows up.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. adrianyujs

    adrianyujs MDL Member

    Sep 26, 2012
    186
    32
    10
    XML to install windows, it will boot in audit mode.

    Now I didn't use, manually create partition and install windows, den it boot to OOBE, and I restart into audit mode by pressing CTRL+ALT+F3.
     
  3. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Great... now, please validate for the specified file I told you ealier (WinRe.Wim) and also check the partition layout to be sure that it is OK.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. adrianyujs

    adrianyujs MDL Member

    Sep 26, 2012
    186
    32
    10
    Bro, here:

    Volume in drive D is Recovery
    Volume Serial Number is CEB9-BD99
    Directory of D:\
    10/25/2012 10:26 AM <DIR> $RECYCLE.BIN
    10/25/2012 10:04 AM <DIR> FullRestore
    10/25/2012 10:04 AM <DIR> Recovery
    10/25/2012 09:39 AM <DIR> System Volume Information
    0 File(s) 0 bytes
    Directory of D:\$RECYCLE.BIN
    10/25/2012 10:26 AM <DIR> .
    10/25/2012 10:26 AM <DIR> ..
    10/25/2012 10:26 AM <DIR> S-1-5-21-689056922-1875495942-2248516162-500
    0 File(s) 0 bytes
    Directory of D:\$RECYCLE.BIN\S-1-5-21-689056922-1875495942-2248516162-500
    10/25/2012 10:26 AM <DIR> .
    10/25/2012 10:26 AM <DIR> ..
    10/25/2012 10:26 AM 129 desktop.ini
    1 File(s) 129 bytes
    Directory of D:\FullRestore
    10/25/2012 10:04 AM <DIR> .
    10/25/2012 10:04 AM <DIR> ..
    06/10/2009 02:06 PM 3,170,304 Boot.Sdi
    10/25/2012 10:07 AM 296,396,755 WinRE.Wim
    2 File(s) 299,567,059 bytes
    Directory of D:\Recovery
    10/25/2012 10:04 AM <DIR> .
    10/25/2012 10:04 AM <DIR> ..
    10/25/2012 11:21 AM <DIR> WindowsRE
    0 File(s) 0 bytes
    Directory of D:\Recovery\WindowsRE
    10/25/2012 11:21 AM <DIR> .
    10/25/2012 11:21 AM <DIR> ..
    06/10/2009 02:06 PM 3,170,304 Boot.Sdi
    10/25/2012 11:21 AM 3,792,187,514 Install.Wim
    10/25/2012 10:08 AM 303,622,855 WinRE.Wim
    3 File(s) 4,098,980,673 bytes
    Total Files Listed:
    6 File(s) 4,398,547,861 bytes
    16 Dir(s) 8,091,951,104 bytes free

    And there is file winre.wim exist in c:\windows\system32\recovery\backup\ :)

    BTW my recovery partition is drive D, not drive R.

    And I already captured the image, but it still no show up repair computer option.... F7 also cannot be pressed... No response.
     
  5. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Everything seems right

    for the letter, it doesn matter. I use R in my script (mount it to this letter). You can remove the letter if you want to protect the partition from accidental write.

    Also, can you give me the printou of the following command?
    REAGENTC /INFO

    ?

    Thanks
     
    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
    Did you reboot after the OOBE before doing that or you ran it just aftr the OOBE without rebooting?

    The recovery environment seems to be disabled.
    It should be enabled.
    Normally automatically enabled after the OOBE process.

    DELL Media or original Microsoft Media?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. adrianyujs

    adrianyujs MDL Member

    Sep 26, 2012
    186
    32
    10
    After image creation complete, its stated ready for end user and it shutdown.

    I start PC again, and its state install something and auto restart again in OOBE, I enter audit mode again and restart and trying F7 and F8, there is no repair option.

    I'm using DELL media....

    And yeah I have to enable recovery environment using command reagentc /enable /auditmode

    but certain case its failed, I don know why...

    Think logically, I create image before enable recovery environment, and give customer, they only can recover windows 1 time only lol... Otherwise windows corrupted and it will come up automatically :p
     
  8. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Ha! There is the problem.

    You SHOULD NOT switch again to audit mode after the computer close telling you the computer is ready. Just continue in the OOBE process as if you where the customer in question.

    Then test everything, even the recovery option using the recovery environment.


    Then, if everything is OK, run the "FullRestore.cmd" script from the windows folder. This will shutdown the computer. Then reboot. The computer will be re-imaged, erasing all trace of your test and then shutdown again. Unplug everything and give to the user :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. adrianyujs

    adrianyujs MDL Member

    Sep 26, 2012
    186
    32
    10

    LOL ok, I try again, will feedback later, thanks a lot bro...
     
  10. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    since everything was already captured... you may try to use the FullRestore script right now... may save you time :D
     
    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
    The "fullRestore" script do the following

    - Erase current Windows boot loader entry
    - Add the "FullRestore" WINRE entry as the default one
    - Shutdown

    On next reboot, the FullRestore WINRE will start and the following will be done :
    - Formatting the Windows partition
    - Formatting the System (boot loader) partition
    - Reapply the Install.Wim (captured image) to the Windows partition
    - Recreate the Windows boot loader entry
    - Register the Recovery environment
    - Register the Recovery image
    - Shutdown


    The NORMAL "Reinstall Windows" that is executed from the Recovery Environment do the following
    - More current installation to Windows.Old
    - Reapply the image
    - Reregister the recovery environment/recovery image

    The main differecnt, is that the FullRestore script will not preserve anythig.
    Also, when you use a media with multiple language, you will have again the choice of the language, while the normal way of reinstalling will remember last language use and won't let you change back.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. adrianyujs

    adrianyujs MDL Member

    Sep 26, 2012
    186
    32
    10
    OK bro, can u make it run the fullrestore in recovery environment instead reinstall windows?
     
  13. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    The fullrestore script must be run from Windows only. Although it may works if run from the recovery environment, but never tried it.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. adrianyujs

    adrianyujs MDL Member

    Sep 26, 2012
    186
    32
    10
    I tried, it won't work... lol...

    So the only way is Reinstall Windows, den run fullrestore cmd under windows, settled.... :)
     
  15. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    For the FULL restore, yes. A normal restore, from the Recovery Environment.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. adrianyujs

    adrianyujs MDL Member

    Sep 26, 2012
    186
    32
    10
    Alright...

    Another thing, I wan to re-create image, for example, I create image, den I install new application again, how do I create and overwrite existing image?
     
  17. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    you can't. It is a recovery partition for emergency or when you give your laptop to someone else. There is no direct way of "upgrading" your recovery image.

    only windows 8 allows that.

    But there is an indirect solution and I use this one.
    I don't install any app in my windows. Only drivers.
    And I use a SetupComple script that will install my application after the OOBE process.

    If I want to upgrade my image, I "simply" mount the WIM file using DISM and then replace the script/app by the new one.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. adrianyujs

    adrianyujs MDL Member

    Sep 26, 2012
    186
    32
    10
    Ah that so complicated.... Anyway thanks a lot :)
     
  19. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,297
    1,587
    60
    Let me know if everything is OK now :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...