0x80070643 / KB5028997: Resize partiton partition to install WinRE: Windows RE image was not found.

Anonymous
2024-04-25T17:47:34+00:00

Hi,
I've been trying to install windows update but get the error 0x80070643.

I've them came across this article:

https://support.microsoft.com/en-us/topic/kb5028997-instructions-to-manually-resize-your-partition-to-install-the-winre-update-400faa27-9343-461c-ada9-24c8229763bf
I
 followed the instructions all the way up to Step 8 where I get the error message:

REAGENTC.EXE: The Windows RE image was not found.

Below what I did in the command prompt.

Please could I have help resolving this issue so I can install this update?


Microsoft Windows [Version 10.0.19045.4291]

(c) Microsoft Corporation. All rights reserved.

C:\Windows\system32>reagentc /info

Windows Recovery Environment (Windows RE) and system reset configuration

Information:

Windows RE status:         Disabled 

Windows RE location: 

Boot Configuration Data (BCD) identifier: 00000000-0000-0000-0000-000000000000 

Recovery image location: 

Recovery image index:      0 

Custom image location: 

Custom image index:        0 

REAGENTC.EXE: Operation Successful.

C:\Windows\system32>reagentc /disable

REAGENTC.EXE: Windows RE is already disabled.

C:\Windows\system32>

C:\Windows\system32>diskpart

Microsoft DiskPart version 10.0.19041.3636

Copyright (C) Microsoft Corporation.

On computer: LAPTOP-1H294KOV

DISKPART> list disk

Disk ### Status Size Free Dyn Gpt


Disk 0 Online 953 GB 0 B *

DISKPART> sel disk 0

Disk 0 is now the selected disk.

DISKPART> list part

Partition ### Type Size Offset


Partition 1 System 260 MB 1024 KB

Partition 2 Reserved 16 MB 261 MB

Partition 3 Primary 929 GB 277 MB

Partition 4 Recovery 1550 MB 930 GB

Partition 5 Primary 22 GB 931 GB

Partition 6 Recovery 200 MB 953 GB

DISKPART> sel part 3

Partition 3 is now the selected partition.

DISKPART> shrink desired=250 minimum=250

DiskPart successfully shrunk the volume by: 250 MB

DISKPART> sel part 4

Partition 4 is now the selected partition.

DISKPART> delete partition override

DiskPart successfully deleted the selected partition.

DISKPART> list disk

Disk ### Status Size Free Dyn Gpt


* Disk 0 Online 953 GB 1800 MB *

DISKPART> create partition primary id=de94bba4-06d1-4d40-a16a-bfd50179d6ac

DiskPart succeeded in creating the specified partition.

DISKPART> gpt attributes =0x8000000000000001

DiskPart successfully assigned the attributes to the selected GPT partition.

DISKPART> format quick fs=ntfs label="Windows RE tools"

100 percent completed

DiskPart successfully formatted the volume.

DISKPART> list vol

Volume ### Ltr Label Fs Type Size Status Info


Volume 0 C OS NTFS Partition 929 GB Healthy Boot

Volume 1 RESTORE NTFS Partition 22 GB Healthy

Volume 2 SYSTEM FAT32 Partition 260 MB Healthy System

Volume 4 MYASUS FAT32 Partition 200 MB Healthy Hidden

* Volume 5 Windows RE NTFS Partition 1800 MB Healthy Hidden

DISKPART> exit

Leaving DiskPart...

C:\Windows\system32>reagentc /enable

REAGENTC.EXE: The Windows RE image was not found.

Windows for home | Windows 10 | Windows update

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Ramesh 181.2K Reputation points Volunteer Moderator
2024-04-26T05:20:57+00:00

If the Windows RE image (winre.wim) is missing, you must extract a fresh copy from the Windows 10 ISO. You can use the 7-Zip method in this article to extract winre.wim from the ISO.

After extracting the Winre.wim file, copy it to C:\Windows\system32\Recovery\

Also, post a screenshot of Disk Management (maximized window).

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

6 additional answers

Sort by: Most helpful
  1. Ramesh 181.2K Reputation points Volunteer Moderator
    2024-04-27T03:41:04+00:00

    Yes, see if you can install that update.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-04-26T21:41:36+00:00

    Hi, here is the output, does that mean, it's fixed? Can I do the update now?

    Microsoft Windows [Version 10.0.19045.4291]

    (c) Microsoft Corporation. All rights reserved.

    C:\Windows\system32>cd /d c:\windows\system32\recovery\

    c:\Windows\System32\Recovery>attrib -s -h -r winre.wim

    c:\Windows\System32\Recovery>md \?\GLOBALROOT\device\harddisk0\partition4\Recovery

    c:\Windows\System32\Recovery>md \?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE

    c:\Windows\System32\Recovery>copy winre.wim \?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE\

        1 file(s) copied. 
    

    c:\Windows\System32\Recovery>reagentc /setreimage /path \?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE

    Directory set to: \?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE

    REAGENTC.EXE: Operation Successful.

    c:\Windows\System32\Recovery>reagentc /enable

    REAGENTC.EXE: Operation Successful.

    c:\Windows\System32\Recovery>reagentc /info

    Windows Recovery Environment (Windows RE) and system reset configuration

    Information:

    Windows RE status:         Enabled 
    
    Windows RE location:       \\?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE 
    
    Boot Configuration Data (BCD) identifier: a332c9a7-0415-11ef-b715-04421ad64ea1 
    
    Recovery image location: 
    
    Recovery image index:      0 
    
    Custom image location: 
    
    Custom image index:        0 
    

    REAGENTC.EXE: Operation Successful.

    c:\Windows\System32\Recovery>

    Was this answer helpful?

    0 comments No comments
  3. Ramesh 181.2K Reputation points Volunteer Moderator
    2024-04-26T17:38:25+00:00

    From admin Command Prompt, run:

    • cd /d c:\windows\system32\recovery\
    • attrib -s -h -r winre.wim
    • md \?\GLOBALROOT\device\harddisk0\partition4\Recovery
    • md \?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE
    • copy winre.wim \?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE\
    • reagentc /setreimage /path \?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE
    • reagentc /enable
    • reagentc /info

    Post the output/screenshot.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-04-26T17:28:10+00:00

    Thank you for your reply.

    I've extracted a winre.wim file and copied it to C:\Windows\system32\Recovery\

    Here below is the disk management screenshot.

    Should I continue with the steps again or just attempt reagentc /enable ?

    ![Image](https://learn-attachment.microsoft.com/api/attachments/46343594-132f-4016-8ff2-98c93a595dd3?platform=QnA

    Was this answer helpful?

    0 comments No comments