Hi Carljung,
Welcome to Microsoft Community.
I'm Hahn and I'm here to help you with your concern.
It seems that you are encountering an error when trying to enable the Windows Recovery Environment (Windows RE) using the REAgentC tool. This tool is used to manage the Windows RE settings, but it appears to be failing in your case.
This issue may be caused by a missing or corrupted Windows RE image file (Winre.wim) in the \Windows\System32\Recovery folder.
To troubleshoot the issue, here are a few suggestions:
- Check if the Winre.wim file exists in the \Windows\System32\Recovery folder. If not, you can copy it from another working computer with the same Windows version and architecture, or from the Windows installation media.
- Run the command reagentc /setreimage /path <path_to_Windows_RE_image> to set the location of the Windows RE image file. For example, if the file is in C:\Windows\System32\Recovery, run reagentc /setreimage /path C:\Windows\System32\Recovery.
- Run the command reagentc /enable to enable Windows RE. If you get an error message, try running reagentc /disable first and then reagentc /enable again.
- Run the command reagentc /info to verify that Windows RE is enabled and has a valid location.
- Check the BCD configuration: The "Boot Configuration Data (BCD) identifier" in the reagentc /info output is showing zeros, indicating an issue with the BCD configuration. You can try rebuilding the BCD by running the following command in an elevated Command Prompt: bcdboot C:\Windows /s C: This command assumes that your Windows installation is located on the C: drive. Adjust it accordingly if your system is installed on a different drive.
- Ensure system integrity: It's possible that some system files related to the Windows RE are corrupted. You can run the System File Checker (SFC) utility to scan and repair any corrupted files. Open an elevated Command Prompt and enter the following command: Use the System File Checker tool to repair missing or corrupted system files - Microsoft Support**** sfc /scannow Let the scan complete, and if any errors are found, SFC will attempt to repair them.
- If the above steps don't resolve the issue, you might consider performing a clean installation of Windows. This will reinstall the operating system and recreate the necessary system partitions, including the Windows RE. Windows 11 Clean Installation (microsoft.com) Disclaimer: At this point, we have exhausted all troubleshooting and I recommend that we try to perform a clean install to get your computer back into a working condition. Please ensure that you backup any important data, including Documents, Pictures, Videos, and more.
If there is anything not clear, please do not hesitate to let me know.
Your Sincerely
Hahn - MSFT | Microsoft Community Support Specialist