When the WinRE.wim file is missing from C:\Windows\System32\Recovery, Windows Recovery Environment may not function properly. This guide explains how to restore it using installation media.
Step 1: Check for Hidden Files
- Open C:\Windows\System32\Recovery.
- Ensure hidden and protected system files are visible in File Explorer Options.
Step 2: Extract from Windows Installation Media
- Locate your Windows installation ISO or physical media.
- Mount the ISO and navigate to the sources folder.
- Identify
install.wimorinstall.esdand copy it. - Create two folders in C Drive:
C:\sourcesandC:\Mount. - Paste
install.wimorinstall.esdintoC:\sources.
Step 3: Extract WinRE.wim Using DISM
- Open Command Prompt as Administrator.
- List Windows editions with:
dism /Get-WimInfo /WimFile:C:\sources\install.wim dism /Get-WimInfo /WimFile:C:\sources\install.esd
Identify the index number for your Windows edition.
Step 4: Mount the Image
dism /Mount-Image /ImageFile:C:\sources\install.wim /index:N /MountDir:C:\Mount dism /Mount-Image /ImageFile:C:\sources\install.esd /index:N /MountDir:C:\Mount
Replace N with the correct index.
Step 5: Copy WinRE.wim
copy C:\Mount\Windows\System32\Recovery\WinRE.wim C:\Windows\System32\Recovery\
Step 6: Unmount the Image
dism /Unmount-Image /MountDir:C:\Mount /Commit dism /Unmount-Image /MountDir:C:\Mount /Discard
Use Commit to save changes, or Discard to undo them.
Important Note
If Windows Recovery Environment (WinRE) is enabled, the WinRE.wim file may not be visible. It typically appears only when WinRE is disabled.
By following these steps, you can restore the missing WinRE.wim file and ensure that Windows Recovery Environment remains available when needed.
This process helps maintain a reliable recovery setup, giving you confidence in troubleshooting and system repair.
