Обычно с сообщением «Невозможно найти среду восстановления» пользователи сталкиваются при попытке выполнить сброс системы на заводские настройки (автоматическое восстановление Windows 10): обычно это говорит о том, что был удален или поврежден раздел с Windows RE либо среда восстановления отключена. Также, при отсутствующей среде восстановления, вы не увидите ряда пунктов, связанных с устранением неполадок в особых вариантах загрузки.
В этой инструкции о том, как исправить проблему несколькими способами и восстановить среду восстановления Windows 10 (Windows Recovery Environment), а также дополнительная информация о запуске среды восстановления с загрузочного диска или флешки.
Восстанавливаем среду восстановления
Если по той или иной причине Windows 10 сообщает о том, что не удается найти среду восстановления, мы можем попробовать: включить её или восстановить.
Если вы не удаляли раздел восстановления с жесткого диска, вполне возможно достаточным окажется простое включение Windows RE:
- Запустите командную строку от имени администратора.
- Введите команду reagentc /enable и нажмите Enter (учтите, что иногда выполнение команды «подвисает» на некоторое время).
- В результате вы получите либо сообщение «Операция выполнена успешно», либо сообщение о том, что «Образ среды восстановления не найден».
Если вам повезло, и итогом стал первый результат, делать что-либо ещё обычно не требуется. Если же образ среды восстановления не найден, приступим к его поиску и восстановлению:
- Откройте проводник, включите показ скрытых файлов и отключите скрытие защищенных системных файлов: это можно сделать в меню «Вид» — «Параметры» — «Изменить параметры папок и поиска» — вкладка «Вид», снять отметку «Скрывать защищенные системные файлы», установить отметку «Показывать скрытые файлы, папки и диски».
- Зайдите в папку C:\Windows\System32\Recovery и проверьте, присутствует ли в ней файл Winre.wim. Если да — перейдите к 6-му шагу.
- При отсутствии файла, смонтируйте в системе образ ISO с Windows 10 (при отсутствии, вы можете скачать ISO Windows 10 с официального сайта Майкрософт), либо подключите флешку/диск с Windows 10.
- На смонтированном диске или подключённой флешке в папке «sources» найдите файл install.wim или install.esd, откройте его с помощью архиватора. Например, такие файлы умеет открывать бесплатный архиватор 7-Zip.
- Внутри этого файла перейдите к папке Windows\System32\Recovery (или 1\Windows\System32\Recovery\) и извлеките из него файл Winre.wim. Скопируйте его в C:\Windows\System32\Recovery на вашем компьютере.
- Запустите командную строку от имени администратора и по порядку введите следующие две команды:
reagentc /setreimage /path C:\windows\system32\recovery reagentc /enable
В этот раз, вероятнее всего всё пройдет успешно, а сообщений о том, что невозможно найти среду восстановления Windows 10 вы больше не получите. При необходимости, снова отключите показ скрытых и системных файлов в параметрах проводники.
Это не единственный способ восстановления, но, возможно, самый быстрый и работающий в большинстве случаев.
Еще один способ исправить среду восстановления Windows 10, если она не была удалена с компьютера или ноутбука
Дополнительный метод, который может оказаться работоспособным в случае повреждений BCD или файловой системы на скрытом разделе со средой восстановления (при условии, что вы не удаляли этот раздел) состоит из следующих этапов:
- Запустите командную строку от имени администратора и введите команду bcdedit /enum all
- В выдаче команды найдите пункт recoverysequence, нам требуется его буквенно-цифровой идентификатор GUID.
- Найдите раздел, где в поле description указано «Windows Recovery Environment» (именно так, а не просто «Windows Recovery» и сравните его идентификатор с GUID из 2-го шага.
- Если они не совпадают, введите две команды (фигурные скобки в первой обязательны):
bcdedit /set {current} recoverysequence {GUID_из_3_шага} reagentc /enable
Если вторая команда завершилась успехом, среда восстановления снова работает.
- Если они совпадают, то в разделе из 3-го шага обратите внимание на пункт «device» в разделе из 3-го шага. Он может строго указывать букву диска и путь к файлу Winre.wim, либо иметь путь вида \Device\HarddiskVolume1\ (номер раздела или Volume может отличаться). В первом случае перейдите к шагу 8 и используйте букву раздела (в примере будет использоваться Z).
- Зайдите в управление дисками Windows (Win+R, ввести diskmgmt.msc) и убедитесь, что раздел с указанным номером присутствует и не имеет буквы.
- При пути вида \Device\HardidskVolume_номер\ назначьте разделу диска с этим номером букву с помощью Diskpart (пример приводится для раздела с номером 1, у вас он может быть другим, присваивается буква Z, может быть любая другая, свободная в системе):
diskpart select volume 1 assign letter=Z exit
- Выполните проверку файловой системы раздела со средой восстановления, используя команду (букву диска замените на свою, в примере — Z): chkdsk Z: /f /r /x
- Если в результате выполнения оказалось, что ошибки на диске были найдены и исправлены: переместите файл ReAgent.xml из папки C:\Windows\System32\Recovery в другое расположение (на всякий случай не удаляйте его: он должен снова создаться автоматически, но в случае проблем, просто восстановите его из расположения, куда он был перемещен), а затем используйте команду reagentc /enable в командной строке от имени администратора для включения среды восстановления. Если она была выполнена успешно, среда восстановления должна работать.
После попытки исправления, если вы присваивали букву скрытому разделу со средой восстановления, её можно удалить используя команды из 7-го шага, но вместо последней команды — remove letter=Z (со своей буквой).
Использование среды восстановления с загрузочного накопителя
Существует способ запустить среду восстановления при её отсутствии на компьютере — использовать загрузочную флешку Windows 10 или диск восстановления Windows 10, причем их можно создать и на другом компьютере с такой же ОС (разрядность должна совпадать).
- Как создать загрузочную флешку Windows 10
- Диск восстановления Windows 10
Далее — пример запуска среды восстановления и сброса Windows 10 с загрузочной флешки (при использовании диска восстановления вы сразу приступите к 3-му шагу):
- Загрузитесь с загрузочной флешки Windows 10, на первом экране нажмите «Далее».
- В следующем окне программы установки внизу слева нажмите «Восстановление системы».
Откроется экран среды восстановления. Однако, некоторые пункты (например, «Вернуть компьютер в исходное состояние») в ней может отсутствовать. Дополнительные полезные инструкции на тему в материале: Восстановление Windows 10.
In this post, I’m going to show you how to fix windows re image was not found in windows 11/10.
There could be multiple causes of this issue and there is not a one click fix for windows errors so you have to try and test every method.
This post will automatically fix the following problems:
-reagentc.exe the windows re image was not found
-reagentc /enable not working
-could not find the recovery environment
These three are the main reasons why you are getting this issue. So, I’ll help you to fix it in a simple manner.
Let’ see it.
Table of Contents
- Frustrating Story
- Quick fixes for Reagentc.exe Windows re image was not found.
- How to fix windows re image was not found?
- Method 1: Enable WinRE
- Method 2: Fix reagentc /enable not working
- Method 3: Install Windows directly
- 4. Fix Winre.wim corrupted or missing
- 5. Create a recovery drive and use it to reset
- 6. System Restore
- 7. Bootable Drive
- 8. Use third party software
- Summary
Frustrating Story
My PC was running slow and having some errors so I decided to reset my Windows 11 PC.
But when I was resetting my PC I got this error: could not find the recovery environment insert your windows installation or recovery media.
I really didn’t know what just happened here. Because I didn’t do anything stupid to windows for getting this type of error.
So I just checked online and on YouTube too. But they were just saying that you just need to fix system errors and scan your PC using antivirus.
Saying something like this is so stupid. I mean it’s a Windows reset error and they are saying that you just need to scan your PC for viruses.
There might be a chance of viruses doing this kind of system errors. I’m not completely denying it, but casually saying you just need to scan your PC for Windows error is so questionable.
Anyway, after spending almost half an hour, I found the correct method to fix «Could not find the recovery environment on Windows 11 PC».
There are mainly two causes behind this issue:
1. winRE is disabled
2. winRE is not found
But don’t worry my friends, I have some 100% working methods.
Yes, you will know how to fix windows re image was not found or could not find recovery environment in windows 11 after reading this post.
I will show you the easiest methods through which you can fix this windows 11 reset error.
So let’s start.
«Windows RE image was not found» error may occur if the Windows RE (Recovery Environment) image is missing or corrupt. To fix this issue, you can try the following steps:
1. Use the Windows installation media: If you have a Windows installation media, such as a USB drive or DVD, you can use it to repair the Windows RE image. Boot from the installation media and choose the «Repair your computer» option. Then select «Troubleshoot,» «Advanced options,» and «Command Prompt.»
2. Rebuild the BCD (Boot Configuration Data) store: In the Command Prompt, you can run the following commands to rebuild the BCD store:
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
3. Restore the Windows RE image from a backup: If you have a backup of the Windows RE image, you can restore it to fix the issue.
4. Perform a fresh installation of Windows: If the above steps do not resolve the issue, you may need to perform a fresh installation of Windows to restore the Windows RE image.
Note: Before trying the above steps, it is recommended to backup your important data.
These are just Quick fixes for those who have knowledge of windows computer in deep. But for those who don’t know how to fix windows re image was not found in Windows 11/10, read the following methods in detail.
How to fix windows re image was not found?
Video Guide:
At a normal circumstances, first two methods are enough to fix windows RE image was not found issue but if your PC is stupid and fkd up then I don’t know what will work for you.
But you can try all of these methods one by one and see which works best for you.
1. Enable WinRE
The main cause is Windows re image was not found in Windows 11. So, we’ll try to fix it first.
Here you need to open CMD as an administrator.
After that, you need to put the following command:
reagentc /info
You will see the winRE status.
If it is disabled, you just need to enable it, that’s it.
To enable the winRE, you need to put the following command. Into the CMD.:
reagentc /enable
You will see the successful message.
Now go to your Windows 11 reset options and see if it is working or not.
And 90% of the time this method works.
If you see any error message something like this: «windows re image was not found»
Then you need to go to method 2 to fix this problem.
2. Fix reagentc /enable not working
If you get any error like this reagentc.exe the windows re image was not found that means Reagentc /enable is not working for your PC.
You have to fix reagentc.exe the windows re image was not found issue by setting WinRE.
Watch method 2 of the above video to fix this error: Windows re image was not found.
CMD commands:
bcdedit /enum all
bcdedit /set {current} recoverysequence {GUID}
After applying method 2, try to reset your PC and see if it is working or not.
And I’m sure it will definitely work. Because this is the easiest method that I found on the Internet after searching for a couple of hours.
If you are still facing Windows 11 reset error or this «could not find recovery environment» error then the last option you can do is re-install Windows 11 manually.
3. Install Windows directly
You can fix Windows re image was not found in Windows 11 by reinstalling windows 11.
As I said earlier, this will automatically fix reagentc.exe the windows re image was not found windows 10/11 issue.
Here you need to download one tool called the media creation tool.
It’s a tool from Microsoft officially to install or upgrade to Windows 11.
Download Windows 10
Download Windows 11
Again, you can watch the above video, to know how to use the media creation tool.
If you’re facing windows update problems, you can also fix them using this method.
Here are the simple steps on how to use it:
1. Download this tool
2. Run the setup
3. Go through instructions
4. Select ‘Upgrade this PC’
5. Install Windows
This will download and install the latest setup of windows 11 from the Microsoft server.
Also, it will set all the windows 11 settings to default in order to reset your currently installed settings in windows 11.
You just need to wait till it completes the process of reinstallation and it’s an automatic process so don’t worry about it.
That’s it.
The above three are the most common methods that I found on the internet to fix could not find the recovery environment in windows 11.
But here are some of the working methods that I found on Microsoft and other windows troubleshooting sites.
4. Fix Winre.wim corrupted or missing
This Windows re image was not found in Windows 11 error might occur due to missing or corrupted winRE file. So let’s see how to fix it.
Just open the CMD as an administrator and run this command:
reagentc /setreimage /path C:\Recovery\WindowsRE
IT will set the default for this Winre.wim automatically.
Now again type this reagentc /info in the CMD to check the winre path.
And if it shows the Windows RE location then it’s better to assume that our problem has been solved and you can proceed to reset your PC.
5. Create a recovery drive and use it to reset
Well, this is nothing but a bootable drive method to fix windows re image was not found in Windows 11.
You can use pendrive to create this recovery drive. It will just backup your system files to that drive and then you can use it to reset your PC or repair it using advanced options.
Just type create a recovery drive and you will see that option in the search box.
Open it and follow the instructions given on the screen and it will create that drive easily.
Read this guide from Microsoft to know exactly how to do it: Create a recovery drive
It’s easy actually.
6. System Restore
If you can’t reset your PC try restoring using the system restore to revert back to the safest point from the previously created points.
Obviously, it won’t reset your PC because it will just revert back to the safest point possible to restore the system.
If you or any program have accidentally deleted or corrupted that windows RE location then it may solve it by setting the default path and reverting the system to the clean system files.
7. Bootable Drive
This is just installing the windows setup into the external drive and then we can use it to reset or repair our PC.
It is generally the safest way to recover any windows computer using this method since we are installing a fresh windows with an external drive. Internal drives are already corrupted and faulty so external bootable drives are definitely a better option.
Watch videos on Youtube to know how to create a bootable drive and reset your PC.
8. Use third party software
There are software and programs available to fix could not find the recovery environment in windows 11.
They will guide you on how to fix could not find the recovery environment error with proper instructions while performing these fixations. You can watch youtube videos regarding this and follow the steps to fix your problem.
So, that’s all from my side.
These are the proven methods to fix could not find the recovery environment error in Windows 11/10 PC.
Summary
Windows RE (Recovery Environment) is a bootable environment that is included with Windows operating systems.
It is used to diagnose and troubleshoot issues with the system, as well as perform tasks such as resetting the system, refreshing the system, and restoring from a system image.
The Windows RE image is stored in the Windows installation and can be used to boot the system into the recovery environment if the main operating system is not functioning properly.
In the event that the Windows RE image is missing or corrupt, the system may fail to boot or display an error message indicating that the Windows RE image was not found.
In such cases, you can use the steps outlined in my previous answer to restore the Windows RE image.
All the methods that I’ve mentioned above are officially supported in windows 10/11. You can use those to fix windows re image was not found in Windows 11/10 pc.
When I tried to reset a Windows 10/11 computer by going to Settings > System > Recovery > Reset PC and clicked on Remove everything option, I have got below error message:
Could not find the recovery environment. Insert your Windows installation or recovery media, and restart your PC with the media.
Contents
This error could be caused due to many reasons. I have listed a few of them below:
- Windows recovery environment is disabled.
- This error could occur if BitLocker is Enabled.
- Corrupted
Winre.wim
(Windows Recovery Environment windows image file). - Issues with Windows Installation.
1. Enable Windows Recovery Environment
REAgentC.exe
is a built-in tool in windows which can be used to check and configure Windows Recovery Environment (WinRE). We will first check WinRE status. If it’s disabled, we will use reagentc /enable
to enable it and fix Could Not Find The Recovery Environment issue.
- Right-click on command prompt and select Run as administrator.
- Type
reagentc /info
to check the status of Windows Recovery Environment. - Below screenshot shows that the Windows RE status is disabled.
- Use
reagentc /enable
command to enable Windows Recovery Environment.
- After enabling it, run the command
reagentc /info
to check and confirm if Windows RE status is Enabled. Additionally, you’ll see the Windows RE location and Boot Configuration Data (BCD).
- You can retry Windows reset and if it’s still not fixed, reboot your computer once and try again.
2. Temporarily Disable BitLocker
When you are not able to enable Windows recovery environment using reagentc /enable
command and getting errors. You can try to disable BitLocker on your computer temporarily and enable Win RE. Once the issue is fixed, you can re-enable BitLocker.
- Right-click on command prompt and select Run as administrator.
- Execute below commands to disable BitLocker.
Check the status of BitLocker
manage-bde -status
Disable BitLocker
manage-bde -off <OS Drive Letter>:
Example: manage-bde -off C:
Alternatively, Seach for BitLocker in Start menu and click on Manage Bitlocker. Click Turn BitLocker off for the drive where operating system is installed.
- Use
reagentc /enable
to enable WinRE. - Enable BitLocker using
manage-bde -on C:
command (assuming C: is the drive letter of where the OS is installed, if it’s different in your case, then use that drive letter in the command). Alternatively, Seach for BitLocker in Start menu and click on Manage Bitlocker. Click Turn BitLocker on for OS drive.
3. Fix Corrupted Winre.wim file
If Winre.wim file is corrupted, you can get a fresh copy of this file either from another working computer or get it from installation media files and fix it using regentc
command.
- Right-click on the Windows ISO file and click on Mount.
- Extract Install.esd file from Installation media and Copy Winre.wim and ReAgent.xml files.
- Paste it in C:\Recovery\WindowsRE.
- Use reagentc.exe /setreimage /path C:\Recovery\WindowsRE.
- Run
reagentc /enable
. - Run
reagentc /info
to check and confirm if the issue is resolved.
4. Create a Recovery Drive
If you are still getting issues resetting your PC, then you can create a Windows installation recovery drive, plug it in and restart the computer from the recovery drive. Then try resetting the PC from there.
Note that the reinstallation of the Windows OS will delete all data on your OS drive, including installed applications. Ensure to back the files before reinstalling the OS.
You can create a recovery drive using below steps:
- Go to Start and search for Recovery Drive.
- After clicking on Recovery drive a wizard will guide you through creating a recovery drive. Plug in an empty USB drive (recommended size is at least 16 GB; I used an 8 GB USB without any issues) and keep the option Back up system files to the recovery drive selected. Click Next to proceed.
- Ensure that the USB drive does not contain any important data, as this process will format the USB to create a recovery drive. Check the drive letter to confirm the USB drive and click Next.
- Everything on the Inserted USB drive will be deleted. If there are any important files, you can take a backup first and then click Create.
- Formatting the USB drive.
- System files are being copied to USB drive. The entire process of creating the recovery drive may take up to 2 hours. Once the recovery drive is created, restart your PC and boot it using this recovery USB drive. When you boot the system using recovery drive, you will find the option to reinstall/reset Windows.
- Recovery drive creation took approximately 1 hour for me. When recovery drive is ready. Click on Finish.
- Recovery drive created successfully. Use it to troubleshoot Windows Installation Issues, including resetting your PC.
5. Reinstall the Windows OS from Scratch
If you are still experiencing issues with resetting your computer, this could be an issue which may require complete reinstallation of Windows OS via a USB.
- Download Windows 11.
- Use the mediacreationtool.exe to create a bootable USB drive and use it to reinstall the OS.
Reference
- #reagentc-command-line-options.
Read Next
Key Takeaways
- Reagentc.exe WindowsRE image not found error occurs when enabling reagentc using reagentc /enable command, due to deleted recovery image or formatted recovery partition
- To fix the issue, download and install 7-Zip, get Windows ISO, mount it, extract Windows Recovery Image, copy files to correct location, and run reagentc /enable command
- Follow the detailed steps to extract and paste the files at the correct location, run Command Prompt commands, and ensure Windows RE status is enabled for a successful fix
Troubled by Reagentc.exe WindowsRE image was not found error message? This issue occurs when trying to enable reagentc using the reagentc /enable command. If you are getting this error then that means either the recovery image has been deleted, or if you are having the recovery partition, then it has been formatted.
If you are stuck with this error and finding no path to go ahead then we are here to guide you with it. In this article, we will be discussing how you can fix the Reagentc.exe WindowsRE image, which was not found error.
What is the WindowsRE Image File?
WindowsRE Image file, as the name suggests, is the image file for Windows Recovery Environment. This file enables certain options on the PC like reset, system restore, system image recovery, startup repair, etc. If you have been getting the Reagentc.exe WindowsRE Image was not found message, then that means the recovery image has been deleted from the location, or the recovery partition (where the recovery file is) is formatted.
If you get this error, then that means you won’t be able to recover your PC in case of system failure. In case your system goes through some crash, and you need to restore it or perform the startup repair then those options won’t be available for you. Not only this, but even if you try to reset your PC, then you won’t be able to do that either.
Ways to Fix Reagentc.exe WindowsRE Image Was Not Found
If you have been getting Reagentc.exe WindowsRE image was not found error message, then you need to get the Windows recovery environment image file and put it back in the location. If the file has been deleted, then you will have to use the Windows Installation media to put it back. Below is the step-by-step process to help you fix this issue-
1. Install 7-Zip
The first step is to download and install 7-Zip on your PC. To do so, follow the steps given below-
- Head to the official download page of the 7-Zip.
- Here, you will see different download options; click on the Download button next to the appropriate 7-Zip version.
- Once done, open the File Explorer by pressing Windows + E key combo, and head to the Downloads folder from the left pane.
- Double-click on the 7-Zip setup to run the installer.
- Now, follow the on-screen instructions to install 7-Zip.
2. Get Windows ISO and Mount it
The next step in this process is to get the ISO of whatever Windows is installed on your PC. If it is Windows 10 then you will have to get the Windows 10 ISO, and if it is Windows 11 then you will have to get the Windows 11 ISO. After getting the ISO you will have to mount it to begin with the next step. Here are the steps to help you with it-
- Open the browser and head to the Windows 11 or Windows 10 download page. If your PC has Windows 11 then head to Windows 11 download page else visit Windows 10 download page.
- Under the Create Windows 10/11 Installation Media, click on the Download Now button. This will download the Windows ISO.
- Head to File Explorer by pressing the Windows + E key combo, and click on the Downloads folder from the left pane.
- Now, double-click on the downloaded Media Creation Tool file. When the UAC prompt appears, click on Yes.
- Click Accept for the ‘Notice and license terms.’
- Now, check the ‘Use the recommended options for this PC’ checkbox and click on the Next button.
- After this select the ISO File option and then click on Next.
- Select the download location and set the file name; click on Save to continue.
- Wait for the process to complete and this will download the file.
- Once downloaded, head to the location where the Windows ISO is downloaded. We downloaded our ISO file to Desktop so we will be moving to Desktop.
- Right-click on the Windows ISO file and then click on Mount to mount the ISO.
Now the last step is to extract the Windows Recovery image from the mounted ISO file and paste it at the correct location. To do so, follow the steps given below-
- Press the Windows key to open the Start Menu. Here, search for 7-Zip File Manager and press Enter to launch it.
- Here, double-click on Computer.
- You will see the list of all the partitions; open the mounted partition which has Windows setup files.
- Now, double-click on the Sources folder to open it.
- Double-click on install.esd file to open it. If you don’t find this file then search for install.wim and open it.
- You will now see seven folders numbered from 1-7. You will have to open the correct folder depending on the Windows version on your PC. Here’s what folder to open for different Windows versions-
- 1- Windows 10/11 Home
- 2- Windows 10/11 Home N
- 3- Windows 10/11 Home Single Language
- 4- Windows 10/11 Education
- 5- Windows 10/11 Education N
- 6- Windows 10/11 Pro
- 7- Windows 10/11 Pro N
- Open the corresponding folder as per the above list. We have Windows 11 Home installed on our PC so we will be opening the folder named 1.
- Now head to the following location-
- Windows>System32>Recovery
- You will see two files here-
- ReAgent.xml
- Winre.wim
- Select both these files, right-click, and click Copy to button from the right-click menu.
- On the pop-up window, click the three dots button, as shown in the image below.
- Select Desktop and then click on OK.
- Click on the OK button again to copy the files to the desktop.
- Once done, close the 7-Zip and head to the desktop.
- Select both the files, i.e., ReAgent.xml and Winre.wim, and copy them.
- Open File Explorer by pressing the Windows + E key combo, and head to the following path-
- C:\Windows\System32\Recovery
- Paste both files in this location.
- Once done, open the Start Menu, search for Command Prompt, select it, and then click on Ru as Administrator.
- Now, execute the command given below one-by-one-
- reagentc /enable
- reagentc /info
- The command should run without the error and you will see the Windows RE status as Enabled.
- Now, close the Command Prompt and open the File Explorer.
- Right-click on the mounted Windows ISO, and click on Eject to unmount it.
Conclusion
If you have been facing Reagentc.exe WindowRE image was not found then the above steps should help you fix the issue. Ensure you follow all the steps mentioned above carefully and do not miss even a single step. We hope you find this article helpful, and if you have some doubts regarding the steps mentioned above, you can let us know in the comments section below.
READ MORE:
- 8 Ways to Fix Windows Can’t Connect to this Network Error in Windows 11
- 7 Ways to Reset Windows 11 Update Components
- 12 Ways to Fix 0xc00000e9 Error Code in Windows 11
- 6 Ways to Fix Generic PnP Monitor Driver Problem on Windows 11
- Top 6 Ways to Fix Screenshot Not Working on Windows 11
- Fix: Windows 11 Not Showing Up In Windows 10/8 Update Settings
Anurag Jainhttps://itechhacks.com
Anurag is a Senior content analyst with 4 years of experience in the industry. Based in India, He is extremely skilled at Windows related to How to Troubleshooting matters. His favorite topics are Windows 11, Android, and How To’s.
Среда восстановления Windows Recovery Environment (WinRE) это минимальная ОС на базе образа Windows Preinstallation Environment (WinPE), в которую включен ряд инструментов для диагностики и восстановления Windows. Если Windows не загружается, загрузчик BCD попытается запустить среду восстановления WinRE, которая может исправить проблемы в автоматическом режиме или предоставить доступ к средствам восстановления. Из WinRE можно исправить конфигурацию загрузчика, восстановить ОС из резервной копии образа, откатиться к точке восстановления, запустить командную строку и т.д.
Среда Windows RE состоит из 3 трех файлов, которые находятся на отдельном скрытом разделе Recovery Partition (в старых версиях Windows раздел назывался System Reserved):
- winre.wim – WIM образ со средой WinPE, в которую интегрированы дополнительные утилиты для восстановления Windows;
- boot.sdi – файл SDI (System Deployment Image), который используется для создания RAM диска WinRE в памяти;
- ReAgent.xml — конфигурационный файл WindowsRE.
В этой статье мы покажем, как загрузить Windows в среде восстановления и как пересоздать среду WinRE, если она на работает.
Содержание:
- Как войти в среду восстановления Windows?
- Средства восстановления Windows в среде WinRE
- Не удалось найти среду восстановления
- Включить (отключить) среду восстановления в Windows
- Восстановление среды Windows Recovery Environment
- Пересоздать среду восстановления Windows
Как войти в среду восстановления Windows?
Чтобы запустить среду восстановления Windows, зажмите клавишу Shift и щелкните по кнопке перезагрузки в меню Пуск.
Можно перезагрузить компьютер в режиме WinRE из командной строки с помощью параметра /o в команде shutdown:
shutdown /f /r /o /t 0
Есть еще одна команда для принудительного входа в среду восстановления при следующей загрузке:
reagentc /boottore
Среда восстановления должна запустится автоматически, если возникают проблемы с нормальной загрузкой Windows. Так, например, если три предыдущие попытки нормальной загрузки Windows были неудачными — компьютер автоматически загружается в среде Windows Recovery Environment. Т.е. чтобы загрузить ваш компьютер в WinRE достаточно 3 раза подряд прервать загрузку Windows кнопкой питания.
Средства восстановления Windows в среде WinRE
В среде восстановления WinRE доступно несколько инструментов, которые позволят вам исправить различные проблемы с Windows:
- Reset this PC – позволяет сбросить вашу Windows к заводским настройкам (личные данные и файлы будут удалены);
- System Restore – позволяет восстановить состояние Windows с помощью созданной ранее точки восстановления;
- System Image Recovery – полное восстановление Windows из резервной копии образа (на внешнем носителе);
- Startup Repair– Windows пытается автоматически найти и исправить возможные проблемы (мастер может самостоятельно восстановить загрузчик, конфигурацию BCD и запись MBR(Master Boot Record);
Рекомендуется использовать этот способ исправления проблем в первую очередь.
- Startup Settings – позволяет выбрать различные сценарии загрузки Windows: загрузить компьютер в безопасном режиме, отключить проверку цифровой подписи драйверов, отключить автоматическую перезагрузку при появлении ошибок (только так можно увидеть код ошибки BSOD на экране загрузки Windows);
- Uninstall Updates – удаление установленных обновлений (обычно используется, если Windows не загружается после установки обновлений);
- • Go back to the previous version – позволяет откатиться к предудущему билду Windows (после выполнения апгрейда билда Windows);
- Command Prompt – запустить командную строку для ручного запуска команд диагностики и исправления;
- UEFI Firmware Settings – при следующей загрузки автоматически войти в настройки UEFI компьютера.
Если вы хотите запустить командную строку или другое средство исправления ошибок, WinRE запросит от вас пароль учетной записи с правами локального администратора (используются учетные данные из локальной базы SAM). Впрочем, пароль администратора Windows можно сбросить.
В Windows 11 большинство инструментов в среде восстановления доступны без ввода пароля администратора.
Перед вами должно открыться окно командной строки X:\Windows\System32>.
Из командной строки можно выполнить проверку диска утилитой chkdsk, выполнить проверку образа Windows с помощью DISM и sfc.exe, запустить
regedit
,
bootrec
,
startrep
(эта утилита позволяет найти и исправить проблемы с реестром, драйверами, разделами и т.д.), выполнить диагностику памяти командой
mdsched
, и выполнить другие команды (на сайте довольно много статей, где мы показываем как исправить различные проблемы Windows в среде восстановления или WinPE).
Чтобы закрыть командную строку WinRE и вернутся к выбору режима загрузки, выполните команду:
exit
Не удалось найти среду восстановления
В некоторых случаях Если раздел с WinRE или WIM файл среды восстановления были удалены/повреждены, или некорректно настроена конфигурации ReAgent или BCD, то при попытке загрузить компьютере в среде Windows Recovery Environment появится ошибка:
Невозможно найти среду восстановления.
Could not find the recovery environment. Insert your Windows installation or recovery media, and restart your PC with the media.
Причины, по которым на компьютере не загружается среда WinRE могут быть разными:
- Среда WinRE отключена в Windows;
- В хранилище конфигурации загрузки (BCD) отсутствуют записи для загрузки в режиме восстановления;
- Файл с образом среды winre.wim отсутствует или перемещен;
- Отсутствует или содержит некорректные данные файл конфигурации WinRE (ReAgent.xml).
Далее мы рассмотрим основные способы восстановления среды WinRE на примере Windows 10 и 11
Включить (отключить) среду восстановления в Windows
Вы можете проверить, включена ли среда восстановления на вашем компьютере с помощью команды:
reagentc /info
Команда покажет текущую конфигурацию среды восстановления Windows. В этом примере WinRE активна:
Windows RE status: Enabled
Этак команда также вывела идентификатор записи WinRE в BCD (Boot Configuration Data (BCD) identifier) и путь к образу Windows RE (location: \\?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE)
Чтобы включить (отключить) среду восстановления в Windows, используются команды:
reagentc /disable
reagentc /enable
Логи среды восстановления Windows хранятся в файле %WINDIR%\System32\LogFiles\Srt\SrtTrail.txt.
Восстановление среды Windows Recovery Environment
Самый простой способ восстановить среду восстановления в Windows – просто отключить и включить WinRE с помощью команд:
reagentc /disable
reagentc /enable
Утилита должна обновить конфигурацию загрузчика BCD и добавить записи для среды WinRE.
При появлении ошибки “
REAGENTC.EXE: Unable to update Boot Configuration Data
”, исправьте сначала проблему с загрузчиком Windows (инструкция для UEFI и BIOS компьютеров).
Команда reagent может вернуть ошибку:
REAGENTC.EXE: The Windows RE image was not found.
REAGENT.EXE: образ среды восстановления Windows не найден.
Это обычно означает, что удален файл winre.wim или раздел System Restore. В этом случае вам нужно попробовать восстановить среду WinRE.
Проверьте, что в конфигурации загрузки BCD (Boot Configuratin Data) имеются корректные записи для загрузки среды WinRE.
bcdedit /enum all
В списке вариантов загрузки найдите секцию Windows Boot Loader, с идентификатором identifier={current}. В нашем примере эта запись выглядит таким образом:
Windows Boot Loader ------------------- identifier {current} device partition=C: path \Windows\system32\winload.efi description Windows 11 locale en-US inherit {bootloadersettings} recoverysequence {e96410b6-71fb-11ed-926e-953e7d1b3836} displaymessageoverride Recovery recoveryenabled Yes isolatedcontext Yes allowedinmemorysettings 0x15000075 osdevice partition=C: systemroot \Windows resumeobject {e96410b4-71fb-11ed-926e-953e7d1b3836} nx OptIn bootmenupolicy Standard
Найдите и запомните значение GUID в атрибуте recoverysequence (в нашем примере это {7c817935-e52f-11e6-9c2c-0050569efccb} ).
Далее нужно найти секцию конфигурации загрузки, у которой значение идентификатора (identifier) равно полученному выше GUID, а в описании поля (description) указано Windows Recovery Environment. Эта запись может выглядеть так:
Windows Boot Loader ------------------- identifier {e96410b6-71fb-11ed-926e-953e7d1b3836} device ramdisk=[\Device\HarddiskVolume4]\Recovery\WindowsRE\Winre.wim,{e96410b7-71fb-11ed-926e-953e7d1b3836} path \windows\system32\winload.efi description Windows Recovery Environment locale en-us inherit {bootloadersettings} displaymessage Recovery osdevice ramdisk=[\Device\HarddiskVolume4]\Recovery\WindowsRE\Winre.wim,{e96410b7-71fb-11ed-926e-953e7d1b3836} systemroot \windows nx OptIn bootmenupolicy Standard winpe Yes
В строке Device указан полный путь к WIM образу среды восстановления. В нашем примере он находится на разделе 4 диска (HarddiskVolume4) по пути \Recovery\WindowsRE\Winre.wim.
Чтобы принудительно указать путь к WIM образу на этом разделе в конфигурации WinRE, выполните команду:
REAGENTC.EXE /setreimage /path \\?\GLOBALROOT\device\harddisk\partition4\Recovery\WindowsRE
Если этот раздел существует, можно привязать эту запись загрузчика для загрузки WinRe в качестве среды восстановления для текущей системы. Скопируйте GUID найденной записи и замените его в следующей команде:
bcdedit /set {current} recoverysequence {НайденныйGUID}
Примечание. Если вы используете мультизагрузку, имейте в виду, что каждая ОС будет добавлять в Microsoft Boot Manager собственную запись для среды Windows Recovery Environment. Здесь важно не запутаться в них.
Убедитесь, что файл Winre.wim находится по указанному пути. Как правило, он хранится в одном из следующих местоположений (папки скрытые): каталоге C:\Windows\System32\Recovery, на отдельном скрытом разделе Recovery Partition (или System Reserved), либо на OEM разделе восстановления от производителя (убедитесь, что вы не удаляли OEM раздел восстановления). В нашем примере путь к файлу Recovery Partition.
Затем проверьте путь к wim файлу, который указан в файле ReAgent.xml (находится в каталоге C:\Windows\System32\Recovery либо в каталоге Recovery на разделе восстановления).
notepad c:\Windows\System32\Recovery\ReAgent.xml
Откройте файл конфигурации с помощью любого редактора и проверьте значение атрибута <WinreLocation path =. Если указанный в файле путь не существует (оригинальный раздел был удален), можно изменить путь на <ImageLocation path= «\Recovery\WindowsRE»), создать каталог C:\Recovery\WindowsRE и скопировать в него файл Winre.wim.
Отключите и включите WinRE еще раз:
reagentc /disable
reagentc /enable
Пересоздать среду восстановления Windows
Если вы не нашли файла Winre.wim ни в одном из стандартных каталогов, попробуйте найти его поиском с помощью файлового менеджера или такой командой:
dir /a /s c:\winre.wim
Совет. Не забудьте поискать данный файл и на скрытых разделах, которым нужно предварительно назначить букву диска.
Если вы нашли файл, скопируйте в стандартное местоположение его следующими командами:
attrib -h -s c:\Recovery\xxxx\winre.wim
xcopy /h c:\Recovery\xxxx\winre.wim c:\Windows\System32\Recovery
Если на диске отсутствует WIM образ WinPE, вы можете скопировать его с компьютера с аналогичной версией Windows (версия и битность ОС должна совпадать), или с установочного диска / загрузочной USB флешки с Windows.
В нашем примере у нас есть установочный ISO образ с Windows.
Откройте ISO образ помощью 7-Zip, выберите файл \sources\install.wim (или install.esd) и извлеките файлы \Windows\System32\Recovery\Winre.wim и ReAgent.xml в каталог c:\Windows\System32\Recovery. Оригинальный файл boot.sdi можно скопировать из папки \Windows\Boot\DVD.
Можно заменить стандартный образ winre.wim на более продвинутый образ восстановления DART, в котором есть дополнительные утилиты, полезные для диагностирования и исправления проблем с Windows.
Удалите файл ReAgent.xml со старой конфигураций WinRE:
ren C:\Windows\System32\Recovery\ReAgent.xml ReAgent_backup.xml
Замените путь к файлу winre.wim в конфигурации Recovery Agent:
reagentc /setreimage /path C:\windows\system32\recovery
REAGENTC.EXE: Operation Successful.
Если файл winre.wim отсуствует в целевом каталоге, команда вернет ошибку:
REAGENTC.EXE: No valid image found in the specified path.
Осталось включить Windows Recovery Agent командой:
reagentc /enable
В данном случае файлы среды восстановления будут хранится на системном диске C:.