KB5034439 and recovery drive to small
KB5034439 appears to give problem on Server 2022 were it is possible that the recovery partition is to small.
This is a writeup of a fix that works for me. So far only tested on one server.
# Insert OS iso or physical disc.
mkdir c:\temp
dism /mount-wim /wimfile:"d:\sources\install.wim" /index:1 /mountdir:"c:\temp" /readonly
copy c:\temp\Windows\System32\Recovery\Winre.wim c:\Windows\System32\Recovery\
DISM /unmount-Wim /MountDir:"c:\temp" /discard
# Delete old recovery partition
diskpart
DISKPART> list disk
DISKPART> select disk (DiskNumber from list disk)
DISKPART> list partition
DISKPART> select partition (Partition number for the recovery partition)
DISKPART> delete partition override
# Create new recovery partition
diskpart
DISKPART> list disk
DISKPART> select disk (DiskNumber from list disk)
DISKPART> list partition
DISKPART> select partition (Partition number from Drive c:)
DISKPART> shrink desired=1024
DISKPART> create partition primary
DISKPART> format quick fs=ntfs label="Windows RE tools"
DISKPART> set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
DISKPART> gpt attributes =0x8000000000000001
DISKPART> exit
# Activate new recovery parition
C:\WINDOWS\system32> reagentc /enable
REAGENTC.EXE: Operation Successful.
# Verify recovery partition
reagentc /inf
After changing the size of the recovery partition I had to run Windows update and install everything else, then reboot and install KB5034439.
This post is licensed under CC BY 4.0 by the author.