[SOLVED] KB5034441 can't update Recovery partition on one machine

Gargomel

Member
Joined
Aug 3, 2023
Posts
21
Location
Gargomel
Running windows 10 22H2. I've run Dism /Online /Cleanup-Image /RestoreHealth as well as sfc /scannow and they both complete without any errors

I've rolled out KB5034441 on my network and on several machines I've needed to resize the WinRE parition for it to execute properly.

The problem on this particular machine is when trying to use reagentc /disable to shutdown WinRE so i can make disk changes etc it fails to disable. Most posts i see about removing or repairing the WinRE partition start off with running reagentc /disable which presents an obvious issue for me.

Any insight into either ripping and replacing or repairing WinRE so I can resize this and get the update installed?

info below, as well as the error operation failed : 17 error which I can't find much on, but if I try to enable it seems to run fine, I just can't disable.

1709234276802.png
 
Last edited:
I used diskpart to delete the WinRE partition then resized the OS partition and the remade the WinRE partition and then copied in a new WinRE.wim

  1. Shrink the OS partition and prepare the disk for a new recovery partition.To shrink the OS, run diskpart
    1. Run list disk
    2. To select the OS disk, run sel disk<OS disk index> This should be the same disk index as WinRE.
    3. run list volume
    4. To select the OS volume, run sel volume<OS partition index>
    5. Run shrink desired=250 minimum=250
    6. To select the WinRE partition, run sel volume<WinRE partition index>
    7. To delete the WinRE partition, run delete volume override
  2. Create a new recovery partition.
    1. First, check if the disk partition style is a GUID Partition Table (GPT) or a Master Boot Record (MBR). To do that, run list disk. Check if there is an asterisk character (*) in the “Gpt” column. If there is an asterisk character (*), then the drive is GPT. Otherwise, the drive is MBR.
      1. If your disk is GPT, run create partition primary id=de94bba4-06d1-4d40-a16a-bfd50179d6ac followed by the command gpt attributes =0x8000000000000001
      2. If your disk is MBR, run create partition primary id=27
    2. To format the partition, run format quick fs=ntfs label=”Windows RE tools”
  3. To confirm that the WinRE partition is created, run list vol
    • diskpart
    • sel vol 2 -- Where vol #2 is your Recovery partition.
    • assign letter S
    • set id=ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
    • gpt attributes=0x0000000000000000
    • exit
    • md S:\Recovery\WindowsRE
    • xcopy /h C:\Windows\System32\Recovery\winre.wim S:\Recovery\WindowsRE\
    • label S: Recovery
    • del c:\windows\system32\recovery\reagent.xml /a
    • reagentc /disable
    • reagentc /setreimage /path S:\Recovery\WindowsRE /target C:\Windows
 
Your Post #1 showed recovery image location as blank. That means it's actually C:Recovery. EDIT: Ah, I see Post#5 was the solution.
 
Last edited:
Yeah, interestingly that field is still blank even after resolving the WinRE issue and having the update apply successfully
1709239474934.png
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top