Results 1 to 2 of 2
  1. #1
    Super Moderator bbearren's Avatar
    Join Date
    Dec 2009
    Polk County, Florida
    Thanked 454 Times in 360 Posts

    Restore Functionality to Windows 10 Recovery Environment

    The following procedures are offered as-is; there are no guarantees, use at your own risk. I strongly advise creating a fresh drive image before you begin.

    This will be much simpler if you are running under an administrator user account. However, even as an administrator, where the instructions call for the use of "Run as administrator", follow those instructions. You will also need to make system and hidden files visible in File Explorer. You will likely run into UAC popups along the way; just click on Continue and proceed.

    For best results, use the Media Creation Tool to get the latest release of Windows 10 from Microsoft.

    Your Windows 10 installation media likely has install.esd, not install.wim. This can be converted using the Deployment Image Servicing and Management tool that is installed with Windows.

    You'll need two temporary folders on the root of your C: drive. If you already have a folder named "temp" there, first rename it to "Temp1". You can change it back after everything has been done and you have deleted your temp folder. Open a Command Prompt by right-clicking and selecting "Run as administrator". Leave this Command Prompt window open, as you'll be using it a few times (in this instruction set, everywhere you read "Type (or copy and paste)" it is in reference to this Command Prompt window—just click in that window to give it focus). Type (or copy and paste)

    md c:\temp\

    and hit Enter to create a folder named "temp". You need 3-4 gigabytes of free disk space. Next type (or copy and paste)

    md c:\test\

    Next, note that I have used X for the drive letter of your installation media. Also, sourceindex:1 is for Windows 10 Pro—sourceindex:2 is for Windows 10 Home; edit according to your installation of Windows 10. Change the X to the drive letter your installation media is actually using, then type (or copy the commandline (after changing "X" to your correct drive letter), click on the Command Prompt window to give it focus, then use Ctrl + v to paste it at the Command Prompt)

    dism /export-image /sourceimagefile:"X:\sources\install.esd" /sourceindex:1 /destinationimagefile:C:\temp\install.wim /compress:max /checkIntegrity

    and hit Enter. The procedure can take up to 10-30 minutes; nothing is wrong, just be patient.

    Next, the image file (install.wim that you just created) needs to be mounted. Type (or copy and paste)

    dism /mount-image /imagefile:"C:\temp\install.wim" /index:1 /mountdir:C:\test\ /readonly

    This procedure can also take a while. Just be patient and wait for it to complete. Once the procedure has completed the mounted image folder can be navigated using File Explorer. Browse to C:\Test\Windows\System32\Recovery folder where you'll find winRE.wim. Right-click the winRE.wim file and choose Copy. Navigate to C:\Windows\System32\Recovery and click on it in the left pane of File Explorer. In the right pane, right-click and select Paste.

    The winRE.wim file is now restored. Next, type (or copy and paste)

    reagentc /setreimage /path C:\windows\system32\recovery

    and hit Enter. Now the image file you mounted earlier needs to be unmounted. Type (or copy and paste)

    dism /unmount-image /mountdir:C:\test\ /discard

    and hit Enter.

    To turn Windows Recovery Agent back on, type (or copy and paste)

    reagentc /enable

    and hit Enter. You can check to make sure that the recovery environment is now functional in two ways. You can type (or copy and paste)

    reagentc /info

    and hit Enter. The results of that command should show "Windows RE status: Enabled" along with some additional information.

    For final confirmation, reboot into the Recovery Environment by typing (or copy and paste)

    reagentc /boottore

    and hit Enter. The next restart should boot directly into the Recovery Environment. Restarting from the Recovery Environment (and subsequent restarts) will boot back into Windows. Reagentc /boottore command is one-time-only.

    If these checks are successful, you can now delete the temp folder you created on C: at the beginning of these instructions. If you renamed a previously existing "temp" folder to "temp1", you can restore it to its original name of "temp" after deleting yours.
    Last edited by bbearren; 2017-08-14 at 12:01. Reason: clarity, typos
    Create a fresh drive image before making system changes, in case you need to start over!

    "The problem is not the problem. The problem is your attitude about the problem. Savvy?"—Captain Jack Sparrow "When you're troubleshooting, start with the simple and proceed to the complex."—M.O. Johns "Experience is what you get when you're looking for something else."—Sir Thomas Robert Deware.
    Unleash Windows

  2. The Following 3 Users Say Thank You to bbearren For This Useful Post:

    RockE (2017-08-12),satrow (2017-08-12),Sudo (2017-08-12)

  3. #2
    Join Date
    Mar 2001
    St Louis, Missouri, USA
    Thanked 1,210 Times in 1,053 Posts
    Please start a separate thread if you have a problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts