Forum Discussion

Karl-WE's avatar
Feb 19, 2024

BLOG: Guidance for Windows Recovery partition (WinRE) patching and why you would need it

This is an extended blog, which continues in comments.


Why WinRE partition is controversly discussed on the web? 

You want to enlarge the C (OS Partition) in a VM and WinRE partition is in the way, the most common advice is to delete the WinRE Partition to resolve this limitation. And this is a bad advice imho.

Why keeping the WinRE partition? 

The WinRE partition enables you for different to access different options including

 

  1.  uninstalling Updates *pre-boot* that prevent a system startup. This doesn't happen very often but it can happen.
    This feature has been added to WinRE starting with Windows Server 2022, and Windows 10 22H2 / Windows 11 22H2, or newer. It is quite unknown, though.
  2. Leverage Quick machine recovery, perfectly described by Rudy Ooms in this blog.
  3. Direct UEFI setup (BIOS) access, even with fast boot enabled. Use Shift +Restart when in Windows. 
  4. Device restore or other troubleshooting steps like access to Safe Boot. 

GPT / UEFI required and recommended anyway for both Windows Server and Client.

 

What's the correct location of WinRE partition? 

Ideally you only have one WinRE Partition on your OS disk. 

If you find that your WinRE it is located left of the OS boot drive (C) it has been installed by a bugged release (old ISO). I am sure it was Windows Server 2019 when we noticed that. Aka Windows 10 1809. See below why the certainty. 

When installing Windows or especially Windows Server always use the lastest ISO for fixes like this or for in-place upgrades.

There is no such updated ISO for Windows Server 2016, very unfortunately. 

They started patching them on a monthly basis with Windows Server 2019. You can access your latest ISOs either via my.visualstudio.com (Dev / Test use only), or admin.microsoft.com for VLSC or CSP production More information can be found in the comment below. 

Why do I have more than one WinRE partition? 

  1. This often happened when the existing could not be enlarged during in-place upgrade. Maybe also a bug. Haven't seen this long time. It was common before Windows 10 1809.
  2. When installing more than one Windows on one or different physical disks, unfortunately Windows Setup will not use existing WinRE Partitions but create another for each Windows instance. This is known as side-by-side installation or more commonly "Windows OS multi-boot". Each OS instance will create and maintain its own WinRE Partition (by design).

Windows OS Multi-boot is a common scenario for users, using designated Windows Installations for specific use cases, like Windows Insiders to test different Insider branches on one physical machine and disk. Speaking for myself I use multi-boot for Windows 11 to seperate gaming from productive work and to evaluate Windows Server Insider. Please mind, each instance requires a seperate license. 

 

Why patching Windows RE is important? 
There is a 2024 CVE that needs to addressed. Please find more information in the comments below on the "How-to".patching the WinRE CVE and remediate the 01-2024 LCU failing.

More information on how to actually fix this can be found in this comment below


How to relocate the WinRE partition? 

A WinRE Partition left of C (OS Partition) makes no sense as Windows still may not move partitions to the right or left (while technical possible). Windows can only shrink partitions. But not move them.

Mind, that if you change / delete WinRE partitions you need to inform Windows about it via reagentc.exe

These tools can be used:

 

  • Windows Diskpart
  • Settings App > Storage Settings > Advanced Storage Settings > Disks and Volumes
    Windows 10 22H2 / Windows 11 22H2 / Windows Server 2022 or newer.
  • diskmgr.mmc all legacy OS
    Windows Key + X > Disk Management 
  • Trusted 3rd party tool for Home Use (Windows 10 / 11) or paid for Windows Server use:
    Minitools Partition Wizard (Free). Available through winget.

Formerly recommended Minitools Partition Wizard but they now have a paywall. If you are ok I would still recommend it. Legacy tools like Acronis Partition Wizard is no longer optimized for or SSD / NVMe.



Bonus: Use Partitioning tools for Windows Server / expanding WinRE / resize or move OS Drive

  1. Create a PAWS VM Client or Server on Azure Local, Azure, Hyper-V, VMware etc.
  2. Buy the Tool (aquire a license, required for Windows Server) 
  3. Install the license on the PAWS
  4. Shutdown affected VM
  5. Attach affected virtual disk to the PAWS VM, do the resize job
  6. Attach modified disks back to the original VM

Pro: easy and licensing costs efficient. 

Cons: Downtime and manual task

Hope this is helpful to you. Appreciate your likes, spreading the word. 

3 Replies

Resources