Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest
Please, try again later.
Windows recovery image file not found
To resolve the issue of missing Windows Recovery Environment files, you will need to copy them from the Windows Installation media to the running system. Perform the following steps on the machine that is having the issue:
install.wim
is present, skip to Part 2: Using Diskpart Check if the Recovery Partition is Presentinstall.esd
is present, proceed to step 3dism /get-imageinfo /imagefile:D:\sources\install.esd
Next, use the Export-Image function to export the install.wim for the Index ID that you need. For the example command below, the machine had Windows 10 Pro installed, and Index #6 matched that edition.
Be sure to include the /Compress switch; if it is not included, the resulting WIM file will fail to mount using DISM.
dism /Export-image /SourceImageFile:D:\sources\install.esd /SourceIndex:6 /DestinationImageFile:C:\tempsources\install.wim /Compress:fast /CheckIntegrity
Open an elevated Command Prompt, and run the following commands in Diskpart:
list disk
select disk #
list part
Below are three expandable sections that provide information on the next actions to take based on whether the Recovery partition is available.
Scenario Summaries:
The Recovery partition is present, and you would prefer to update it instead of storing the recovery image on the OS partition.
There is no Recovery partition, but you would like to create one and store the Recovery image there.
There is no Recovery partition, and you don't want to create one.
In this scenario, you will assign a drive letter to the existing Recovery partition, replace the recovery image on that partition with the one from the ISO, and then reinitialize the recovery environment.
diskpart
list disk
select disk #
list part
select part #
assign letter=R
exit
reagentc /disable
DISM /Mount-image /imagefile:D:\sources\install.wim /Index:1 /MountDir:C:\dism /readonly /optimize
robocopy /MIR /XJ C:\dism\Windows\System32\Recovery\ C:\Windows\System32\Recovery
dism /unmount-image /mountdir:C:\dism /discard
dir R: /A /S
mkdir R:\Recovery\WindowsRE
xcopy /h C:\Windows\System32\Recovery\Winre.wim R:\Recovery\WindowsRE
reagentc /setreimage /path R:\Recovery\WindowsRE /target C:\Windows
reagentc /enable
reagentc /info
diskpart
list disk
select disk #
list part
select part #
remove letter=R
exit
In this scenario, you will shrink the last partition on the OS disk, create a new partition, assign it the Recovery type, copy the recovery image into that new partition, then reinitialize the recovery environment.
Note:
diskpart
list disk
select disk #
list part
select part #
shrink desired=8192
create partition primary
format quick fs=ntfs label="Recovery"
set id = 27
set id = "de94bba4-06d1-4d40-a16a-bfd50179d6ac"
assign letter=R
exit
reagentc /disable
DISM /Mount-image /imagefile:D:\sources\install.wim /Index:1 /MountDir:C:\dism /readonly /optimize
robocopy /MIR /XJ C:\dism\Windows\System32\Recovery\ C:\Windows\System32\Recovery
dism /unmount-image /mountdir:C:\dism /discard
mkdir R:\Recovery\WindowsRE
xcopy /h C:\Windows\System32\Recovery\Winre.wim R:\Recovery\WindowsRE
reagentc /setreimage /path R:\Recovery\WindowsRE /target C:\Windows
reagentc /enable
reagentc /info
diskpart
list disk
select disk #
list part
select part #
remove letter=R
exit
In this scenario, you will extract the recovery image from the install.wim to the C:\Windows\System32\Recovery folder and then initialize the recovery environment to use that recovery image.
DISM /Mount-image /imagefile:D:\sources\install.wim /Index:1 /MountDir:C:\dism /readonly /optimize
reagentc /disable
robocopy /MIR /XJ C:\dism\Windows\System32\Recovery\ C:\Windows\System32\Recovery
reagentc /setreimage /path C:\Windows\System32\Recovery /target C:\Windows
dism /unmount-image /mountdir:C:\dism /discard
reagentc /enable
Your feedback has been received and will be reviewed.
Please, try again later.
Please try select less.
This form is only for KB Feedback/Suggestions, if you need help with the software open a support case
Your feedback has been received and will be reviewed.
Please, try again later.