Windows 10: HowTo Reset Windows With Custom Recovery Image

Discus and support HowTo Reset Windows With Custom Recovery Image in Windows 10 Installation and Upgrade to solve the problem; I need help with resetting Windows 10 using a recovery image. I found a lot of instructions in the web but I think they seems to bee incomplete.I made... Discussion in 'Windows 10 Installation and Upgrade' started by TomGo71, May 9, 2023.

  1. TomGo71 Win User

    HowTo Reset Windows With Custom Recovery Image


    I need help with resetting Windows 10 using a recovery image. I found a lot of instructions in the web but I think they seems to bee incomplete.I made a system image using the dism command:“dism /Capture-Image /CaptureDir:C:\ /ImageFileHowTo Reset Windows With Custom Recovery Image :D:\windows10\install.wim /Name:windows10“Then after I entered:“reagentc /setosimage /path D:\windows10 /index 1”Then I get the location of the restore image as well as the index if I enter:“reagentc /info“How can I start the resetting Windows 10 using my image to keep my program files and settings of the image file ?I tried to restart pressing the shift key as

    :)
     
    TomGo71, May 9, 2023
    #1

  2. [HELP]Image recovery issues

    Guys i am trying to fix my cousins Asus Eee netbook. It has a backup image file that is partitioned on the hard drive but when I go to use it the app will run through a few steps and stop. It is running Vista . Any suggestions?
     
    Rapidfire48, May 9, 2023
    #2
  3. Brink Win User
    Brink, May 9, 2023
    #3
  4. MLT
    mlt Win User

    HowTo Reset Windows With Custom Recovery Image

    Can I create a custom recovery image for Windows 10 like recimg did in Windows 8.1?

    Overview

    For the sake of completeness here are the tools & relevant keywords one has to use to get custom recovery for Windows 10. Thanks to search engines and drastic changes on MS side, internet is flooded with badly outdated howtos.

    These days, the feature you are looking for is called Push-Button reset abbreviated as PBR. Essentially all necessary information can be found there. But basically, you are relying on built-in mechanism that uses Windows Component Store (C:\Windows\WinSxS) augmented with custom provisioning packages (ppkg).

    You'll need Windows Assessment and Deployment Kit (ADK) and USMT from there with ScanState tool. ScanTool in Windows 10 ADK was augmented with /apps to capture installed Windows desktop applications into ppkg, and, starting from Anniversary build 14393, with /diff. You can install ADK on another PC and prepare necessary files by Starting Deployment and Imaging Tools Environment and running CopyDandI.cmd amd64 d:\SppTools to get a copy of x64 version into d:\SppTools .

    Optionally one may turn installed classic apps into shortcuts (file pointers) for deferred deployment. See step 10-6. (It was always a puzzle for me when I saw a link to install Excel and alike on a brand new PC). Single instancing can be used to run application directly from provisioning packages sitting in your c:\recovery\customizations.

    You can also capture application one by one into isolated (siloed) provisioning packages essentially by diffing system state. Note that it won't work in Windows 10 editions before Anniversary (build 14393).

    Although not explicitly stated, it looks like one may still capture everything into install.wim. Although it undermines the whole idea of rebuilding OS from up-to-date components. See the first diagram named "Capturing Base App SPP" and step 4 that mentions install.wim can be a "customized push-button reset recovery image". This didn't work for me

    Windows 10 treats specially folders like C:\Recovery\Customizations (with ppkgs) and C:\Recovery\OEM (with other scripts you might create) - it copies them into recovery media you'll create using standard features.

    And here is the link for hands-on labs for training.

    Personally, after reading how many steps one should take, I settled on Sysprep built into Windows 10 and Clonezilla.

    Steps that worked for me in Anniversary edition

    Note that the following is for an "average advanced user" and is simplified as possible and isn't meant as the ultimate guide.

    1. Install ADK with USMT on a spare PC and copy tools to SppTools on a flash drive as written above, i.e. CopyDandI.cmd amd64 d:\SppTools.
    2. Then boot clean reference PC and press Ctrl+Shift+F3 from Welcome Screen to reboot into Audit mode. If you were already under normal user, use sysprep\sysprep (I had on my PC at least) from elevated console and choose reboot to Audit. Remember to delete your user once in Audit mode.
    3. Install all the stuff you want and insert that flash drive, and open command prompt followed by changing directory to SppTools.
    4. Optionally, from Admin prompt compact /compactos:always. This saved me ~2.2GB. So up to you if worth a shot.
    5. Use Disk Cleanup and delete all junk like RetailDemo Offline Content.
    6. Then scanstate /apps /ppkg C:\Recovery\Customizations\base.ppkg /telHowTo Reset Windows With Custom Recovery Image :eek:ff This will take time. Optionally, I'd suggest to save such lines into some cmd in d:\SppTools\ for ease of use next time, if ever, so it can be used with type, more and alike for copy-pasting.
    7. Now, if you forgot another app, install it, and do scanstate /apps /diff:C:\Recovery\Customizations\base.spp /ppkg C:\Recovery\Customizations\more.spp /telHowTo Reset Windows With Custom Recovery Image :eek:ff Don't bother with it. This captures the difference, but for whatever reasons SPP unlike PPKG isn't automatically provisioned. Also see notes.
    8. Now you can reboot to OOBE using sysprep dialog (you were in Audit mode, right?). Tick Generalize if you plan on deploying to other devices, otherwise I'm not sure it is necessary. (It caused me a message saying that Windows 10 can't be installed on my hardware, but worked fine other time.)
    9. Finally, you can create a Recovery Drive using standard tool as usuallyHowTo Reset Windows With Custom Recovery Image :)

    If you want to keep raw image before rebooting and save some extra space you can do the following as well just before 8).

    1. Reboot into WinPE 10 on some USB flash drive instead of Out-Of-Box-Experience, I hope you have some lying around.
    2. Make it Single Instance with dism /Apply-CustomDataImage /customdataimage:c:\recovery\customizations\base.spp /imagepath:C:\ /SingleInstance. Think twice, though! Once you install updates, you'll loose twice as much space.
    3. Cleanup with md c:\temp, dism /Cleanup-Image /Image=c:\ /startComponentCleanup /ResetBase /ScratchDir:C:\Temp, rmdir c:\temp. (I have no idea how to insert code block into a list)
    4. Capture image dism /Capture-Image /ImageFile:d:\some-image-to-apply-on-another-pc-later-manually.wim /CaptureDir:C:\ /NameHowTo Reset Windows With Custom Recovery Image :Drive-C

    Misc

    1. Note that testing PBR out will leave traces in C:\Windows\Logs\PBR as well as C:\$SysReset.
    2. I played with various options likes /config:Config_AppsAndSettings.xml, /genconfig, /i, /ue:*, /tel and they made no difference in combination with /apps options. Just in case, I keep /telHowTo Reset Windows With Custom Recovery Image :eek:ff.
    3. I get defaultuser0 after reset. I wonder if someone can comment on how to avoid that.
    4. /apps will not work with /offlinewindir for dism.
    5. I have no idea yet how single instancing works with upgrades and uninstalls. Works well. But space is wasted.
    6. I stumbled on Visual Studio 2015 Community "prerelease license expired" issue. I'm not sure what caused that. Single Instanceing or something wasn't captured.
    7. On siloed packages, they aren't restored and dism says it doesn't know what is /Apply-SiloedPackage.

    Here are some reference numbers for free space reported by dir.

    1. Before applying custom image: 196,703,948,800 bytes free
    2. After applying: 219,435,716,608 bytes free
    3. after deleting pagefile and alike (not necessary for dism though): 226,386,108,416 bytes free
    4. After rebooting and OOBE (9.) I got somehow 223,074,557,952 bytes free.

    To see that you are truly using single instancing use fsutil wim

    And to check a particular file

     
Thema:

HowTo Reset Windows With Custom Recovery Image

Loading...
  1. HowTo Reset Windows With Custom Recovery Image - Similar Threads - HowTo Reset Custom

  2. HowTo Reset Windows With Custom Recovery Image

    in Windows 10 Gaming
    HowTo Reset Windows With Custom Recovery Image: I need help with resetting Windows 10 using a recovery image. I found a lot of instructions in the web but I think they seems to bee incomplete.I made a system image using the dism command:“dism /Capture-Image /CaptureDir:C:\ /ImageFile:D:\windows10\install.wim...
  3. HowTo Reset Windows With Custom Recovery Image

    in Windows 10 Software and Apps
    HowTo Reset Windows With Custom Recovery Image: I need help with resetting Windows 10 using a recovery image. I found a lot of instructions in the web but I think they seems to bee incomplete.I made a system image using the dism command:“dism /Capture-Image /CaptureDir:C:\ /ImageFile:D:\windows10\install.wim...
  4. reset using surface recovery image

    in Windows 10 Gaming
    reset using surface recovery image: Hi everyone,About a week again, I updated my computer Microsoft Surface Pro 5 - Windows 10. After using it for about a day, the Bluetooth stopped working and disappeared. I discovered this when my attached keyboard stopped responding. I disconnected it, cleaned it and...
  5. reset using surface recovery image

    in Windows 10 Software and Apps
    reset using surface recovery image: Hi everyone,About a week again, I updated my computer Microsoft Surface Pro 5 - Windows 10. After using it for about a day, the Bluetooth stopped working and disappeared. I discovered this when my attached keyboard stopped responding. I disconnected it, cleaned it and...
  6. Create Custom Recovery Image in Windows 10

    in Windows 10 Tutorials
    Create Custom Recovery Image in Windows 10: How to: Create Custom Recovery Image in Windows 10 How to Create a Custom Recovery Image used to Refresh Windows 10 [img] Warning This tutorial no longer works starting with Windows 10 build 10130 released on May 29th 2015. The "C:\Windows\System32\recimg.exe" file...
  7. Create Reset Recovery Image in Windows 10

    in Windows 10 Tutorials
    Create Reset Recovery Image in Windows 10: How to: Create Reset Recovery Image in Windows 10 How to Create a Recovery Image used to Reset Windows 10 [img] Information If you're having problems with Windows 10 on your PC, you can try to refresh, reset, or restore it. When you reset your PC, it will remove...
  8. Show Current Refresh Custom Recovery Image in Windows 10

    in Windows 10 Tutorials
    Show Current Refresh Custom Recovery Image in Windows 10: How to: Show Current Refresh Custom Recovery Image in Windows 10 How to Show Current Custom Recovery Image used to Refresh Windows 10 [img] Warning This tutorial no longer works starting with Windows 10 build 10130 released on May 29th 2015. [img]...
  9. Deregister Refresh Custom Recovery Image in Windows 10

    in Windows 10 Tutorials
    Deregister Refresh Custom Recovery Image in Windows 10: How to: Deregister Refresh Custom Recovery Image in Windows 10 How to Deregister Current Custom Recovery Image used to Refresh Windows 10 [img] Warning This tutorial no longer works starting with Windows 10 build 10130 released on May 29th 2015. [img]...
  10. Set Refresh Custom Recovery Image as Active in Windows 10

    in Windows 10 Tutorials
    Set Refresh Custom Recovery Image as Active in Windows 10: How to: Set Refresh Custom Recovery Image as Active in Windows 10 How to Set a Custom Recovery Image as Active to use to Refresh Windows 10 [img] Warning This tutorial no longer works starting with Windows 10 build 10130 released on May 29th 2015. [img]...