IMPORTANT Issue to be aware of if you use BitLocker on your OS drive


hsehestedt

Well-known member
Pro User
VIP
Local time
9:04 AM
Posts
2,568
Location
Texas, USA
OS
Win11 Pro 23H2
EDIT: Mar 22, 2023
IMPORTANT: Microsoft now has a script available to patch the Win RE environment on running systems. I strongly suggest running their script to address this issue. Please see the Mar 22, 2023 edit at the top of post #24 in this thread for details.



If you read Shawn's post today regarding the Jan 10, 2023 Patch Tuesday Security Update, you may have noticed this note as the first thing in the post:

Image1.jpg

Reference:


The gist of this that if you encrypt your OS drive with BitLocker and someone gains physical access to your computer, they could potentially exploit this vulnerability to gain access to your encrypted data. If you use BitLocker on your OS drive and you have a Recovery Partition, this affects you!

This is a pretty big deal. Unfortunately, the documentation MS has regarding this is abysmal. Let me explain.

Let's start with the actual vulnerability...


The solution to this issue involves a manual procedure to update the WinRE.wim located on your recovery partition. The procedure for doing this can be found here:


Note that you want to follow the procedure in the section called "Apply the update to a running PC".

Now, here is where things get messy:

First, I have a Recovery Partition with a size of 633 MB. That seems to be the size that Windows is creating the partition these days. I just reinstalled a few days ago, so this is a fresh installation. Unfortunately, the procedure to update the recovery environment fails due to a lack of space. It doesn't tell you that, instead it spits out this gem of a message:

REAGENTC.EXE: Operation failed: 70

REAGENTC.EXE: An error has occurred.

Well, it turns out that I always update my Windows images and had already done so today for patch Tuesday. One of the components that I update in the WinRE.wim. So, to my thinking, I could simply take the updated WinRE.wim from my Windows image and replace the one on my recovery partition. Bzzzz, wrong answer. Next contestant!

I'll spare you a lot of techno detail here, but the mechanism for updating the WinRE.wim, according to Micosoft's own docs, is to apply the "Safe OS Dynamic Update" to the WinRE.wim image (Safe OS is another term for the Windows Recovery Environment). However, through trial and error I discovered that the update for the Recovery Environment was actually contained within the Latest Cumulative Update (LCU). Again, Microsoft's own docs show that the LCU is not applicable to the Recovery Environment, but clearly this is a load of horse manure.

Yet more: I think that I now have a procedure worked out for applying the fix to running systems. After further testing I'll post a step by step procedure here. Please note that Microsoft states that only WinRE in a running environment is affected by this issue; WinRE on your Windows images are not affected. However, since their procedures are not properly updating the Windows ISO image, any machine to which you install Windows will require that you manually fix the Recovery Environment UNLESS you break with the Microsoft documented procedures and you apply the LCU to the WinRE.wim.

I'll post more when I have this throughly worked out and debugged.

In the meantime, if anyone here might be affected by this issue, I would appreciate you letting me know if you have interest in detailed mitigation procedures. If there is interest, I'll make the extra effort to create a batch file that should automate the procedure. If there is no interest, I'll save myself the effort :-).
 
Last edited:

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
Why doesn't Microsoft update it automatically? This is absurd.

ETA: On second thought I'm not sure I even care about this if it only affects a running system. I mean, if they're already in, who cares, and if they are stuck at the Windows lock screen, they have to break through that, and if they do, again, who cares about this WinRE issue. What am I missing?
 
Last edited:

My Computer

System One

  • OS
    Windows 11
ImpureTangibleAgouti.webp
 

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Mouse
    Logitech G402
    Keyboard
    Logitech K800
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Mouse
    Logitech G402
    Keyboard
    Logitech K800
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
I got it all worked out. It's a serious mess. All of Microsoft's own documentation regarding how to fully update a Windows image directly contradicts some of the steps that are needed. But, I got my program updated so that it properly applies these updates to the WinRE.wim which is itself inside of the install.wim.

I may try to write some code that automatically patches the WinRE environment, I just have to find the motivation to do so :-)
 

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
Lengthy discussion beginning here:


Lots of ticked off admins, plus several wondering like me (see previous message) if this is really a huge concern, given the advisory says:

Q. Are both offline images and WinRE in a running environment affected by this vulnerability?

A. No. Only a WinRE image on a running PC is vulnerable. This can be any time a recovery or reset operation is invoked from the main OS.
 

My Computer

System One

  • OS
    Windows 11
I have 3,700 lbs. of utter crap on my computer.
That'll teach those hackers. They'll get lost in my system and will never return..

And another one bites the dust. :cool:
 

My Computers

System One System Two

  • OS
    Win 11 Home ♦♦♦22631.3527 ♦♦♦♦♦♦♦23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® [May 2020]
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    Asus Pro WS X570-ACE (BIOS 4702)
    Memory
    G.Skill (F4-3200C14D-16GTZKW)
    Graphics Card(s)
    EVGA RTX 2070 (08G-P4-2171-KR)
    Sound Card
    Realtek ALC1220P / ALC S1220A
    Monitor(s) Displays
    Dell U3011 30"
    Screen Resolution
    2560 x 1600
    Hard Drives
    2x Samsung 860 EVO 500GB,
    WD 4TB Black FZBX - SATA III,
    WD 8TB Black FZBX - SATA III,
    DRW-24B1ST CD/DVD Burner
    PSU
    PC Power & Cooling 750W Quad EPS12V
    Case
    Cooler Master ATCS 840 Tower
    Cooling
    CM Hyper 212 EVO (push/pull)
    Keyboard
    Ducky DK9008 Shine II Blue LED
    Mouse
    Logitech Optical M-100
    Internet Speed
    300/300
    Browser
    Firefox (latest)
    Antivirus
    Bitdefender Internet Security
    Other Info
    Speakers: Klipsch Pro Media 2.1
  • Operating System
    Windows XP Pro 32bit w/SP3
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® (not in use)
    CPU
    AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)
    Motherboard
    ASUS M2N32-SLI Deluxe Wireless Edition
    Memory
    TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)
    Graphics card(s)
    EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Sound Card
    Onboard
    Monitor(s) Displays
    ViewSonic G90FB Black 19" Professional (CRT)
    Screen Resolution
    up to 2048 x 1536
    Hard Drives
    WD 36GB 10,000rpm Raptor SATA
    Seagate 80GB 7200rpm SATA
    Lite-On LTR-52246S CD/RW
    Lite-On LH-18A1P CD/DVD Burner
    PSU
    PC Power & Cooling Silencer 750 Quad EPS12V
    Case
    Generic Beige case, 80mm fans
    Cooling
    ZALMAN 9500A 92mm CPU Cooler
    Mouse
    Logitech Optical M-BT96a
    Keyboard
    Logitech Classic Keybooard 200
    Internet Speed
    300/300
    Browser
    Firefox 3.x ??
    Antivirus
    Symantec (Norton)
    Other Info
    Still assembled, still runs. Haven't turned it on for 13 years?
OP...thanks for sharing. I looked at the instructions. When it tells you to download the update package, it means go to MS Update Catalog and search for the update, correct...in this case KB5022303? Admittedly, I've never even thought of having to update the RE image...figured that updates that affected it would be automatic. Also, on one of my machines I have a Recovery Partition (I made it exactly 1GB...maybe that's big enough), but on the other I deleted the partition and have my RE folder (with the image) on my C:drive...same commands and process though?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Intel i7-7700K
    Motherboard
    Asus Prime Z-270A
    Memory
    32GB 2666Mhz (Kingston Hyper X Fury)
    Graphics Card(s)
    Asus Nvidia 1050Ti
    Sound Card
    N/A
    Monitor(s) Displays
    Samsung C27F390
    Screen Resolution
    1920 x 1080
    Hard Drives
    Samsung 850 Evo 512GB
I read the release notes on that update this morning and wasn't smart enough to make heads or tails out of it. I ended up being totally confused about all the obscure instructions. Let me get this straight. If one does NOT use bitlocker then winRe.wim does not have to be modified and one can get into recovery as usual. Is that correct?

Hypothetical question...If one DOES use bitlocker, and one downloads a current iso, can one enter recovery using the iso boot usb drive without altering winRE.wim?

Heck, this mumbo jumbo is all the more reason to recover from a Macrium image rather than use recovery environment at all.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 +256gb ssd+512 gb usb m.2 sata
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
I have 3,700 lbs. of utter crap on my computer.
That'll teach those hackers. They'll get lost in my system and will never return..

And another one bites the dust. :cool:
Who knows maybe if they are the friendly type those hackers might run Disk Cleanup on your computer. :D
 

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Mouse
    Logitech G402
    Keyboard
    Logitech K800
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
Surely just copy winre.wim to somewhwere there is space e.g. %systemdrive% then mount it, integrate the update, save and then copy it back .

Hopefully it wont be too much bigger after the update has been integrated.
 

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
OP...thanks for sharing. I looked at the instructions. When it tells you to download the update package, it means go to MS Update Catalog and search for the update, correct...in this case KB5022303? Admittedly, I've never even thought of having to update the RE image...figured that updates that affected it would be automatic. Also, on one of my machines I have a Recovery Partition (I made it exactly 1GB...maybe that's big enough), but on the other I deleted the partition and have my RE folder (with the image) on my C:drive...same commands and process though?
That is correct - we are talking about applying the Latest Cumulative Update (LCU) in order to update the WinRE.wim.

The problem for me was 2 things:

1) I couldn't update the WinRE.wim as the Microsoft instructions stated because there was not enough room, although you would never know that was the problem from the cryptic error.

2) I apply all updates (not just LCU) to my Windows images every month to make sure all components are up to date. However, even after doing that the WinRE.wim didn't have the proper updates so that meant that any new machine I installed to would have this problem. I finally figured out that I had to apply the LCU to the WinRE.wim. Microsoft's own documentation says that the LCU DOES NOT apply to the WinRE.wim, instead, the mechanism to updating it is supposed to be the "Safe OS Dynamic Update". I modified my program to do both the Safe OS Dynamic Update and the LCU and now everything is happy.

Side note: The whole process of updating Windows images fully - and when I say fully I mean all parts of the image - has a lot of flaws in the Microsoft documentation. It took me many months of hardcore troubleshooting to get a complete procedure worked out, but every once in a while something uncovers another flaw like this issue did. However, I'm confident(ish) that I have it all working now.
 

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
Surely just copy winre.wim to somewhwere there is space e.g. %systemdrive% then mount it, integrate the update, save and then copy it back .

Hopefully it wont be too much bigger after the update has been integrated.
Actually, the updated WinRE.wim was like a MB or so amaller than the original. So that's good. Also, you are correct, that's is basically what I did. I updated the WinRE.wim offline, assigned a drive letter to the recovery partition, deleted the original file and replaced it with the updated one. Note that all the files and folders are hidden and marked hidden / system / no indexing so you have to clear that to delete the original file, then set those attributes again on the new file. Then remove the drive letter for the recover partition again.

Serious pain in the backside. I'm thinking about writing a script to automate the whole task.
 

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
I read the release notes on that update this morning and wasn't smart enough to make heads or tails out of it. I ended up being totally confused about all the obscure instructions. Let me get this straight. If one does NOT use bitlocker then winRe.wim does not have to be modified and one can get into recovery as usual. Is that correct?

Hypothetical question...If one DOES use bitlocker, and one downloads a current iso, can one enter recovery using the iso boot usb drive without altering winRE.wim?

Heck, this mumbo jumbo is all the more reason to recover from a Macrium image rather than use recovery environment at all.
Here is a solution. lol
 

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Mouse
    Logitech G402
    Keyboard
    Logitech K800
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
I add updates to bootable wims often. It is automated in my script to update win7 media.

I suppose you could reagentc /disable to get it into system32\recov folder, update the thing, then reagentc /enable again.

or you could fish it out using a link something like this which is a small extract from my script that I use for win7.

Code:
@echo off
TITLE (C) SIW2 2015
SET TP=%~dp0
SET TP=%TP:~0,-1%
cd /d "%TP%"
mode con lines=40 cols=100
color 5f
 
:GETRE
setlocal enableextensions enabledelayedexpansion
echo.
echo Looking for  WinRE...
(set WREGUID=)
for /f "usebackq tokens=1,2 delims={} " %%G in (`bcdedit.exe /enum {current} ^| find "recoverysequence"`) do set WREGUID=%%H
if "%WREGUID%"=="" goto :FIXRE
echo.
(set recseqdrv=)
(set recseqpth=)
for /f "usebackq tokens=1-4 delims=[]=, " %%G in (`bcdedit.exe /enum {%WREGUID%} ^| find "device"`) do (
    set recseqdrv=%%I
    set recseqpth=%%~PJ
 )
set recseqpth=%recseqpth:~0,-1%
echo.
echo. WinRE path: %recseqdrv%%recseqpth%
echo.
if  "%recseqdrv:~1,6%"=="Device" (

 MKLINK /D "%TP%\RSD" \\?\GLOBALROOT%recseqdrv%\ >nul
 IF NOT EXIST "%TP%\RSD\%recseqpth%\WinRE.wim" GOTO :FIXRE
 attrib -S -H -R "%TP%\RSD\%recseqpth%\WinRE.wim"
 COPY /Y "%TP%\RSD\%recseqpth%\WinRE.wim" "%userprofile%\desktop\WinRE.wim" >nul
 attrib +S +H  "%TP%\RSD\%recseqpth%\WinRE.wim"
 echo winre copied to "%userprofile%\desktop\WinRE.wim"
   ) ELSE (
 IF NOT EXIST "%recseqdrv%%recseqpth%\WinRE.wim" GOTO :FIXRE
 attrib -S -H -R "%recseqdrv%%recseqpth%\WinRE.wim"
 copy "%recseqdrv%%recseqpth%\WinRE.wim" "%userprofile%\desktop\WinRE.wim" >nul
 attrib  +S +H "%recseqdrv%%recseqpth%\WinRE.wim"
 echo winre copied to "%userprofile%\desktop\WinRE.wim"
 ECHO.
  )
 
    pause
 
    :FIXRE
 
    ::some code here to run reagentc etc..
 
Last edited:

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
I updated the WinRE.wim offline, assigned a drive letter to the recovery partition, deleted the original file and replaced it with the updated one....

...Serious pain in the backside. I'm thinking about writing a script to automate the whole task.
Maybe another option would be to first disable the recovery environment with reagentc /disable. There is only ever one copy of WinRE.wim, and it will be moved from the recovery partition to C:\Windows\System32\Recovery when it is disabled. Easier to get to and work on there, and when updated you could re-enable the recovery environment which will move the updated WinRE.wim back to the recovery partition. Easier to script that too....

(just thinking out loud, I don't need to as I don't use bitlocker)
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD
    Internet Speed
    50 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Lattitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround. In-place upgrade to 22H2 using ISO and a workaround. Feature Update to 23H2 by manually installing the Enablement Package. Also running Insider Beta, Dev, and Canary builds as a native boot .vhdx.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
Maybe another option would be to first disable the recovery environment with reagentc /disable. There is only ever one copy of WinRE.wim, and it will be moved from the recovery partition to C:\Windows\System32\Recovery when it is disabled. Easier to get to and work on there, and when updated you could re-enable the recovery environment which will move the updated WinRE.wim back to the recovery partition. Easier to script that too....

(just thinking out loud, I don't need to as I don't use bitlocker)
That's a great idea. I'm going to try that on a machine that I have not updated yet.

In fact, that will make scripting much easier as well.
 

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
That's a great idea. I'm going to try that on a machine that I have not updated yet.

In fact, that will make scripting much easier as well.
I have been doing that for years. See my reply to @glasskuter above.

1. reagentc /disable
2. copy C:\Windows\System32\Recovery\WinRE.wim onto a Ventoy stick that uses Wimboot Plugin
3. reagentc /enable
4. delete the Recovery partition

This enables me to boot straight into the WinRE.wim file that's on the stick. On this same stick, I also keep a copy of the official Windows Installation bootable ISO file that I downloaded from Microsoft, as doing this will let me simply press the w key.

P.S., when the language selection screen of Windows Setup appears, you can press Shift + F10 to open a command prompt with admin privileges. The only reason why I also like to keep my WinRE.wim file on the same stick is just because the file is smaller than the Windows Installation bootable ISO file so, when using the Ventoy stick to boot straight into either one of these two different files, the former file loads a lot faster than the latter file does. But the end result is still the same, as both options will give me WinRE equally fine. Next, the command prompt lets me use the manage-bde utility to unlock my drive if BitLocker is enabled (which it is not, but anyway).
 
Last edited:

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Mouse
    Logitech G402
    Keyboard
    Logitech K800
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
I have been doing that for years. See my reply to @glasskuter above.

1. reagentc /disable
2. copy C:\Windows\System32\Recovery\WinRE.wim onto a Ventoy stick that uses Wimboot Plugin
3. reagentc /enable
4. delete the Recovery partition

This enables me to boot straight into the WinRE.wim file that's on the stick. On this same stick, I also keep a copy of the official Windows Installation bootable ISO file that I downloaded from Microsoft, as doing this will let me simply press the w key.

P.S., when the language selection screen of Windows Setup appears, you can press Shift + F10 to open a command prompt with admin privileges. The only reason why I also like to keep my WinRE.wim file on the same stick is just because the file is smaller than the Windows Installation bootable ISO file so, when using the Ventoy stick to boot straight into either one of these two different files, the former file loads a lot faster than the latter file does. But the end result is still the same, as both options will give me WinRE equally fine. Next, the command prompt lets me use the manage-bde utility to unlock my drive if BitLocker is enabled (which it is not, but anyway).
I've written my own program to do similar to Ventoy, but in this instance we're talking about having to patch the WinRE.wim. It all has to be done manually because there is no Microsoft process that automatically patches this file.
 

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
Hey, do you guys have a step by step guide of updating the WinRE ? And specific what downloads to download.
 

My Computer

System One

  • OS
    Windows 11
Back
Top Bottom