{"id":50387,"date":"2021-04-06T15:28:44","date_gmt":"2021-04-06T11:28:44","guid":{"rendered":"https:\/\/www.msp360.com\/resources\/?p=50387"},"modified":"2025-05-07T13:01:50","modified_gmt":"2025-05-07T09:01:50","slug":"windows-troubleshooting-checking-and-enabling-recovery-environment","status":"publish","type":"post","link":"https:\/\/www.msp360.com\/resources\/blog\/windows-troubleshooting-checking-and-enabling-recovery-environment\/","title":{"rendered":"Windows Troubleshooting: Checking and Enabling Recovery Environment"},"content":{"rendered":"<p>Windows Recovery Environment (<a href=\"https:\/\/docs.microsoft.com\/en-us\/windows-hardware\/manufacture\/desktop\/windows-recovery-environment--windows-re--technical-reference\">WinRE<\/a>) is a built-in Windows tool that allows you to recover a system when it can\u2019t be booted. WinRE can help you with troubleshooting when the system fails to start or unexpectedly restarts. Such issues might be caused by disk corruption, incorrect updates, or damaged or accidentally removed system files. WinRE repairs the system, bringing it back to a working state.<\/p>\n<p><!--more--><\/p>\n<p>To create the recovery environment, Windows prepares the hard drive partitions during setup. Initially, the OS places the WinRE image file (winre.wim) in the Windows partition, <i>\\Windows\\System32\\Recovery<\/i> folder. In the configuration step, the WinRE image file is copied to the recovery tools partition, so that you\u2019ll be able to use the recovery environment even if the Windows partition is damaged.<\/p>\n<p>When restoring an image in a bootable ISO\/USB environment partition-by-partition, the WinRE partition is not vital and can be excluded. However, WinRE is needed for automatic repairs, troubleshooting and\/or <a href=\"https:\/\/www.msp360.com\/resources\/blog\/image-backup-and-recovery\/\">system image recovery<\/a>, so it must be checked and (if needed) reconfigured after the system successfully boots up \u2013 to avoid potential problems.<\/p>\n<p>A tool called <b>REAgentC<\/b> will help to check whether Windows Recovery Environment is ready to work. Use the following command (from an elevated command prompt or Windows PowerShell):<\/p>\n<p><i>reagentc \/info<\/i><\/p>\n<p>If the recovery environment is configured correctly, the output of the command will contain the following line:<\/p>\n<p><i>Windows RE status: Enabled<\/i><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-50392\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/04\/image1.png\" alt=\"Windows RE is Enabled\" width=\"859\" height=\"389\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/04\/image1.png 859w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/04\/image1-300x136.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/04\/image1-768x348.png 768w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/04\/image1-624x283.png 624w\" sizes=\"auto, (max-width: 859px) 100vw, 859px\" \/><\/p>\n<p>If the status is <i>Disabled<\/i>, then you need to reconfigure the WinRE partition.<\/p>\n<h2>How to Configure Windows Recovery Environment<\/h2>\n<p><b>Please note<\/b>: the recovery environment can be located on the system drive, but it\u2019s better to move it to a separate unencrypted (in the case of BitLocker) partition. Otherwise, you might encounter problems in the event of a blocked or ransomware-corrupted system drive.<\/p>\n<p id=\"last\">Create a new NTFS partition after the C: partition or at the end of the drive for WinRE. By default, Microsoft recommends allocating 650 Mb for it. The WinRE image (<b>winre.wim<\/b>) should be placed in the <i>\\Recovery\\WindowsRE<\/i> folder of the partition you\u2019ve just created.<\/p>\n<div id=\"slidebox\"><a class=\"close\">\u00a0<\/a><!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper hs-cta-deferred\" id=\"hs-cta-wrapper-6349a84d-5cfe-4761-9172-2c515783c2fc\" data-portal=\"5442029\" data-id=\"6349a84d-5cfe-4761-9172-2c515783c2fc\"><span class=\"hs-cta-node hs-cta-6349a84d-5cfe-4761-9172-2c515783c2fc\" id=\"hs-cta-6349a84d-5cfe-4761-9172-2c515783c2fc\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/5442029\/6349a84d-5cfe-4761-9172-2c515783c2fc\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-6349a84d-5cfe-4761-9172-2c515783c2fc\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/5442029\/6349a84d-5cfe-4761-9172-2c515783c2fc.png\" alt=\"CTA\"><\/a><\/span><\/span><!-- end HubSpot Call-to-Action Code --><\/div>\n<blockquote><p>Note: if the <b>winre.wim<\/b> (or WinRE partition) was not included in the <a href=\"https:\/\/www.msp360.com\/resources\/blog\/file-level-vs-image-level-backup\/\">image-based backup<\/a>, it can be extracted from the Windows Setup image: \\sources\\install.wim\/[*]\/Windows\/System32\/Recovery\/, where [*] is an index number of the Windows edition included in install.wim. Use the <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows-hardware\/manufacture\/desktop\/dism---deployment-image-servicing-and-management-technical-reference-for-windows\">DISM<\/a> tool to determine the right folder.<\/p><\/blockquote>\n<p>Next, configure and enable Windows Recovery Environment. Run the following commands (the partition with the winre.wim image in this example is the R: drive):<\/p>\n<p><i>reagentc \/setreimage \/path R:\\Recovery\\WindowsRE<br \/>\nreagentc \/enable<\/i><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-50397 size-full\" src=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/04\/image2-1.png\" alt=\"\" width=\"854\" height=\"456\" srcset=\"https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/04\/image2-1.png 854w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/04\/image2-1-300x160.png 300w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/04\/image2-1-768x410.png 768w, https:\/\/www.msp360.com\/resources\/wp-content\/uploads\/2021\/04\/image2-1-624x333.png 624w\" sizes=\"auto, (max-width: 854px) 100vw, 854px\" \/><br \/>\nYou can get more options for the REAgentC tool via the link below:<\/p>\n<p><a href=\"https:\/\/docs.microsoft.com\/en-us\/windows-hardware\/manufacture\/desktop\/reagentc-command-line-options\">REAgentC command-line options<\/a><\/p>\n<p>After WinRE is enabled, you need to customize some attributes for the recovery partition. Use the <b>diskpart<\/b> tool:<\/p>\n<p>For UEFI:<\/p>\n<p><i>select disk 0<br \/>\nselect partition 4<br \/>\nset id=\"de94bba4-06d1-4d40-a16a-bfd50179d6ac\"<br \/>\ngpt attributes=0x8000000000000001<br \/>\nremove letter=\"R\"<br \/>\nlist volume<br \/>\nexit<\/i><\/p>\n<p>For BIOS:<\/p>\n<p><i>select disk 0<br \/>\nselect partition 3<br \/>\nset id=27<br \/>\nremove letter=\"R\"<br \/>\nlist volume<br \/>\nexit<\/i><\/p>\n<p>In these examples, the system disk is 0 and the recovery partition is 4 (UEFI) or 3 (BIOS). To check what disk and partition to select, use the commands <b>list disk<\/b> and <b>list partition<\/b> respectively.<\/p>\n<blockquote><p>Note: after Windows 10 updates, there might exist 2 recovery partitions \u2013 at the beginning of the disk and after the system partition. The first one is enabled for BCD and redirects to the second one, and the second recovery partition holds the winre.wim image. In this case, the instructions above will help to reconfigure the WinRE partition to result in one partition only.<\/p><\/blockquote>\n<p>Once you\u2019ve configured Windows Recovery Environment, it is ready to be used to troubleshoot the issues of an unbootable OS. You can launch it from the Boot Options menu. Here\u2019s how Microsoft recommends doing it:<\/p>\n<ul>\n<li>From the login screen, click <b>Shutdown<\/b>, then hold down the Shift key while selecting <b>Restart<\/b>.<\/li>\n<li>In Windows 10, select <b>Start &gt; Settings &gt; Update &amp; Security &gt; Recovery<\/b>; under <b>Advanced start-up<\/b>, click <b>Restart now<\/b>.<\/li>\n<li>Boot to recovery media.<\/li>\n<li>Use a hardware recovery button (or button combination) configured by the OEM.<\/li>\n<\/ul>\n<h2>Discover more beyond Windows Recovery Environment<\/h2>\n<p><span style=\"font-weight: 400;\">Optimizing IT operations requires strategic tools and knowledge for system efficiency, cloud management, and data security. Linux administrators can enhance performance by <\/span><a href=\"https:\/\/www.msp360.com\/resources\/blog\/linux-resize-partition\/\"><span style=\"font-weight: 400;\">resizing partitions<\/span><\/a><span style=\"font-weight: 400;\"> and maintaining system integrity with a <\/span><a href=\"https:\/\/www.msp360.com\/resources\/blog\/guide-to-linux-patching-management\/\"><span style=\"font-weight: 400;\">Linux patching management<\/span><\/a><span style=\"font-weight: 400;\"> plan. For AWS users, securely configuring services by <\/span><a href=\"https:\/\/www.msp360.com\/resources\/blog\/how-to-find-your-aws-access-key-id-and-secret-access-key\/\"><span style=\"font-weight: 400;\">locating AWS Access Key ID and Secret Access Key<\/span><\/a><span style=\"font-weight: 400;\"> and selecting between <\/span><a href=\"https:\/\/www.msp360.com\/resources\/blog\/amazon-ec2-vs-amazon-s3\/\"><span style=\"font-weight: 400;\">Amazon EC2 and S3<\/span><\/a><span style=\"font-weight: 400;\"> ensures cost-effective scalability. Database reliability hinges on <\/span><a href=\"https:\/\/www.msp360.com\/resources\/blog\/sql-server-transaction-log-backup\/\"><span style=\"font-weight: 400;\">SQL Server transaction log backups<\/span><\/a><span style=\"font-weight: 400;\"> and efficient <\/span><a href=\"https:\/\/www.msp360.com\/resources\/blog\/sql-server-backup-and-restore\/\"><span style=\"font-weight: 400;\">SQL Server backup and restore<\/span><\/a><span style=\"font-weight: 400;\"> strategies. Meanwhile, <\/span><a href=\"https:\/\/www.msp360.com\/resources\/blog\/exchange-truncate-logs\/\"><span style=\"font-weight: 400;\">truncating Exchange logs<\/span><\/a><span style=\"font-weight: 400;\"> optimizes server performance. <\/span><span style=\"font-weight: 400;\">With <a href=\"https:\/\/www.msp360.com\/\">MSP360<\/a>\u2019s expert insights, IT teams can build robust, secure infrastructures.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows Recovery Environment (WinRE) is a built-in Windows tool that allows you to recover a system when it can\u2019t be booted. WinRE can help you with troubleshooting when the system fails to start or unexpectedly restarts. Such issues might be caused by disk corruption, incorrect updates, or damaged or accidentally removed system files. WinRE repairs [&hellip;]<\/p>\n","protected":false},"author":89,"featured_media":50391,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[886,878],"tags":[960],"class_list":["post-50387","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-backup-and-dr-guides","category-msp-university","tag-image-based-backup-restoration-how-to-recover-a-backup-to-a-disk-of-a-smaller-size"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/50387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/users\/89"}],"replies":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/comments?post=50387"}],"version-history":[{"count":3,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/50387\/revisions"}],"predecessor-version":[{"id":60075,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/posts\/50387\/revisions\/60075"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/media\/50391"}],"wp:attachment":[{"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/media?parent=50387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/categories?post=50387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.msp360.com\/resources\/wp-json\/wp\/v2\/tags?post=50387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}