Share via

Huge issues with the KB5028997 - need help

Anonymous
2024-05-08T00:11:36+00:00

I am an ordinary computer user, not a professional, and am having problems sorting this out. I tried to follow the instructions here:

https://support.microsoft.com/en-gb/topic/kb5028997-instructions-to-manually-resize-your-partition-to-install-the-winre-update-400faa27-9343-461c-ada9-24c8229763bf

but got error messages I do not understand and now I cannot even re-enable the Windows RE (I must admit i don't really know what this does).

Here is a copy of what is now in my Administrator: Command Prompt

Microsoft Windows [Version 10.0.19045.4355]
(c) Microsoft Corporation. All rights reserved.

C:\Windows\system32>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: 0127cb6c-0b96-11e7-9ba7-a8a1595dd472  
Recovery image location:  
Recovery image index:      0  
Custom image location:  
Custom image index:        0  

REAGENTC.EXE: Operation Successful.

C:\Windows\system32>reagentcreagentc /disable
'reagentcreagentc' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>reagentc /disable
REAGENTC.EXE: Operation Successful.

C:\Windows\system32>diskpart

Microsoft DiskPart version 10.0.19041.3636

Copyright (C) Microsoft Corporation.
On computer: DESKTOP-3AV36DF

DISKPART> list disk

Disk ### Status Size Free Dyn Gpt


Disk 0 Online 3726 GB 0 B *

DISKPART> sel disk<OS disk index>

Microsoft DiskPart version 10.0.19041.3636

DISK - Shift the focus to a disk. For example, SELECT DISK.
PARTITION - Shift the focus to a partition. For example, SELECT PARTITION.
VOLUME - Shift the focus to a volume. For example, SELECT VOLUME.
VDISK - Shift the focus to a virtual disk. For example, SELECT VDISK.

DISKPART> disk4

Microsoft DiskPart version 10.0.19041.3636

ACTIVE - Mark the selected partition as active.
ADD - Add a mirror to a simple volume.
ASSIGN - Assign a drive letter or mount point to the selected volume.
ATTRIBUTES - Manipulate volume or disk attributes.
ATTACH - Attaches a virtual disk file.
AUTOMOUNT - Enable and disable automatic mounting of basic volumes.
BREAK - Break a mirror set.
CLEAN - Clear the configuration information, or all information, off the
disk.
COMPACT - Attempts to reduce the physical size of the file.
CONVERT - Convert between different disk formats.
CREATE - Create a volume, partition or virtual disk.
DELETE - Delete an object.
DETAIL - Provide details about an object.
DETACH - Detaches a virtual disk file.
EXIT - Exit DiskPart.
EXTEND - Extend a volume.
EXPAND - Expands the maximum size available on a virtual disk.
FILESYSTEMS - Display current and supported file systems on the volume.
FORMAT - Format the volume or partition.
GPT - Assign attributes to the selected GPT partition.
HELP - Display a list of commands.
IMPORT - Import a disk group.
INACTIVE - Mark the selected partition as inactive.
LIST - Display a list of objects.
MERGE - Merges a child disk with its parents.
ONLINE - Online an object that is currently marked as offline.
OFFLINE - Offline an object that is currently marked as online.
RECOVER - Refreshes the state of all disks in the selected pack.
Attempts recovery on disks in the invalid pack, and
resynchronizes mirrored volumes and RAID5 volumes
that have stale plex or parity data.
REM - Does nothing. This is used to comment scripts.
REMOVE - Remove a drive letter or mount point assignment.
REPAIR - Repair a RAID-5 volume with a failed member.
RESCAN - Rescan the computer looking for disks and volumes.
RETAIN - Place a retained partition under a simple volume.
SAN - Display or set the SAN policy for the currently booted OS.
SELECT - Shift the focus to an object.
SETID - Change the partition type.
SHRINK - Reduce the size of the selected volume.
UNIQUEID - Displays or sets the GUID partition table (GPT) identifier or
master boot record (MBR) signature of a disk.

DISKPART> list part

There is no disk selected to list partitions.
Select a disk and try again.

DISKPART> sel disk4

Microsoft DiskPart version 10.0.19041.3636

DISK - Shift the focus to a disk. For example, SELECT DISK.
PARTITION - Shift the focus to a partition. For example, SELECT PARTITION.
VOLUME - Shift the focus to a volume. For example, SELECT VOLUME.
VDISK - Shift the focus to a virtual disk. For example, SELECT VDISK.

DISKPART> sel disk 4

The disk you specified is not valid.

There is no disk selected.

DISKPART> sel disk4

Microsoft DiskPart version 10.0.19041.3636

DISK - Shift the focus to a disk. For example, SELECT DISK.
PARTITION - Shift the focus to a partition. For example, SELECT PARTITION.
VOLUME - Shift the focus to a volume. For example, SELECT VOLUME.
VDISK - Shift the focus to a virtual disk. For example, SELECT VDISK.

DISKPART> list part

There is no disk selected to list partitions.
Select a disk and try again.

DISKPART> sel disk04

Microsoft DiskPart version 10.0.19041.3636

DISK - Shift the focus to a disk. For example, SELECT DISK.
PARTITION - Shift the focus to a partition. For example, SELECT PARTITION.
VOLUME - Shift the focus to a volume. For example, SELECT VOLUME.
VDISK - Shift the focus to a virtual disk. For example, SELECT VDISK.

DISKPART> sel disk

The arguments specified for this command are not valid.
For more information on the command type: HELP SELECT DISK

There is no disk selected.

DISKPART> help select disk

Selects the specified disk and shifts the focus to it.  

Syntax: SELECT DISK=<N>
SELECT DISK=SYSTEM
SELECT DISK=NEXT
SELECT DISK=<Path>

DISK=&lt;N&gt;  
            The DiskPart disk index number of the disk to receive  
            focus.  

DISK=&lt;Path&gt;  
            The location path of the disk to receive focus.  

DISK=SYSTEM  
            On BIOS machines, BIOS disk 0 will receive focus.  
            On EFI machines, the disk containing the ESP partition  
            used for the current boot will receive focus. On EFI  
            machines, if there is no ESP, or there is more than  
            one ESP present, or the machine is booted from Windows PE,  
            the command will fail.  

DISK=NEXT  
            Once a disk is selected, this command is used to iterate  
            over all disks in the disk list. The next disk in the list  
            will receive focus. If the next disk is the start of the  
            enumeration, the command will fail and no disk will have  
            focus.  

If no options are specified, the select command lists the disk that  
currently has the focus. You can view the DiskPart index numbers  
for all disks on the computer by using the LIST DISK command.  

Example:

SELECT DISK=1  
SELECT DISK=SYSTEM  
SELECT DISK=NEXT  
SELECT DISK=PCIROOT(0)#PCI(0100)#ATA(C00T00L01)  

DISKPART> sel disk=4

The disk you specified is not valid.

There is no disk selected.

DISKPART> sel disk0

Microsoft DiskPart version 10.0.19041.3636

DISK - Shift the focus to a disk. For example, SELECT DISK.
PARTITION - Shift the focus to a partition. For example, SELECT PARTITION.
VOLUME - Shift the focus to a volume. For example, SELECT VOLUME.
VDISK - Shift the focus to a virtual disk. For example, SELECT VDISK.

DISKPART> list part

There is no disk selected to list partitions.
Select a disk and try again.

DISKPART> sel disk[0]

Microsoft DiskPart version 10.0.19041.3636

DISK - Shift the focus to a disk. For example, SELECT DISK.
PARTITION - Shift the focus to a partition. For example, SELECT PARTITION.
VOLUME - Shift the focus to a volume. For example, SELECT VOLUME.
VDISK - Shift the focus to a virtual disk. For example, SELECT VDISK.

DISKPART> sel disk<0>

Microsoft DiskPart version 10.0.19041.3636

DISK - Shift the focus to a disk. For example, SELECT DISK.
PARTITION - Shift the focus to a partition. For example, SELECT PARTITION.
VOLUME - Shift the focus to a volume. For example, SELECT VOLUME.
VDISK - Shift the focus to a virtual disk. For example, SELECT VDISK.

DISKPART> list disk

Disk ### Status Size Free Dyn Gpt


Disk 0 Online 3726 GB 0 B *

DISKPART> sel disk 0

Disk 0 is now the selected disk.

DISKPART> list part

Partition ### Type Size Offset


Partition 1 Reserved 128 MB 17 KB
Partition 2 System 100 MB 129 MB
Partition 3 Primary 3724 GB 229 MB
Partition 4 Recovery 902 MB 3725 GB

DISKPART> el part 4

Microsoft DiskPart version 10.0.19041.3636

ACTIVE - Mark the selected partition as active.
ADD - Add a mirror to a simple volume.
ASSIGN - Assign a drive letter or mount point to the selected volume.
ATTRIBUTES - Manipulate volume or disk attributes.
ATTACH - Attaches a virtual disk file.
AUTOMOUNT - Enable and disable automatic mounting of basic volumes.
BREAK - Break a mirror set.
CLEAN - Clear the configuration information, or all information, off the
disk.
COMPACT - Attempts to reduce the physical size of the file.
CONVERT - Convert between different disk formats.
CREATE - Create a volume, partition or virtual disk.
DELETE - Delete an object.
DETAIL - Provide details about an object.
DETACH - Detaches a virtual disk file.
EXIT - Exit DiskPart.
EXTEND - Extend a volume.
EXPAND - Expands the maximum size available on a virtual disk.
FILESYSTEMS - Display current and supported file systems on the volume.
FORMAT - Format the volume or partition.
GPT - Assign attributes to the selected GPT partition.
HELP - Display a list of commands.
IMPORT - Import a disk group.
INACTIVE - Mark the selected partition as inactive.
LIST - Display a list of objects.
MERGE - Merges a child disk with its parents.
ONLINE - Online an object that is currently marked as offline.
OFFLINE - Offline an object that is currently marked as online.
RECOVER - Refreshes the state of all disks in the selected pack.
Attempts recovery on disks in the invalid pack, and
resynchronizes mirrored volumes and RAID5 volumes
that have stale plex or parity data.
REM - Does nothing. This is used to comment scripts.
REMOVE - Remove a drive letter or mount point assignment.
REPAIR - Repair a RAID-5 volume with a failed member.
RESCAN - Rescan the computer looking for disks and volumes.
RETAIN - Place a retained partition under a simple volume.
SAN - Display or set the SAN policy for the currently booted OS.
SELECT - Shift the focus to an object.
SETID - Change the partition type.
SHRINK - Reduce the size of the selected volume.
UNIQUEID - Displays or sets the GUID partition table (GPT) identifier or
master boot record (MBR) signature of a disk.

DISKPART> sel part 4

Partition 4 is now the selected partition.

DISKPART> shrink desired=250 minimum=250

You may not shrink OEM, ESP, or recovery partitions, or, offline volumes.
The volume you have selected may not be shrunk.
Please select another volume and try again.

DISKPART> reagentc /enable

Microsoft DiskPart version 10.0.19041.3636

ACTIVE - Mark the selected partition as active.
ADD - Add a mirror to a simple volume.
ASSIGN - Assign a drive letter or mount point to the selected volume.
ATTRIBUTES - Manipulate volume or disk attributes.
ATTACH - Attaches a virtual disk file.
AUTOMOUNT - Enable and disable automatic mounting of basic volumes.
BREAK - Break a mirror set.
CLEAN - Clear the configuration information, or all information, off the
disk.
COMPACT - Attempts to reduce the physical size of the file.
CONVERT - Convert between different disk formats.
CREATE - Create a volume, partition or virtual disk.
DELETE - Delete an object.
DETAIL - Provide details about an object.
DETACH - Detaches a virtual disk file.
EXIT - Exit DiskPart.
EXTEND - Extend a volume.
EXPAND - Expands the maximum size available on a virtual disk.
FILESYSTEMS - Display current and supported file systems on the volume.
FORMAT - Format the volume or partition.
GPT - Assign attributes to the selected GPT partition.
HELP - Display a list of commands.
IMPORT - Import a disk group.
INACTIVE - Mark the selected partition as inactive.
LIST - Display a list of objects.
MERGE - Merges a child disk with its parents.
ONLINE - Online an object that is currently marked as offline.
OFFLINE - Offline an object that is currently marked as online.
RECOVER - Refreshes the state of all disks in the selected pack.
Attempts recovery on disks in the invalid pack, and
resynchronizes mirrored volumes and RAID5 volumes
that have stale plex or parity data.
REM - Does nothing. This is used to comment scripts.
REMOVE - Remove a drive letter or mount point assignment.
REPAIR - Repair a RAID-5 volume with a failed member.
RESCAN - Rescan the computer looking for disks and volumes.
RETAIN - Place a retained partition under a simple volume.
SAN - Display or set the SAN policy for the currently booted OS.
SELECT - Shift the focus to an object.
SETID - Change the partition type.
SHRINK - Reduce the size of the selected volume.
UNIQUEID - Displays or sets the GUID partition table (GPT) identifier or
master boot record (MBR) signature of a disk.

DISKPART> exit

Leaving DiskPart...

C:\Windows\system32>reagentc /enable
REAGENTC.EXE: The Windows RE image was not found.

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 /enable
REAGENTC.EXE: The Windows RE image was not found.

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 /enable
REAGENTC.EXE: The Windows RE image was not found.

C:\Windows\system32>


can someone help me with what to do now?

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

8 answers

Sort by: Most helpful
  1. Anonymous
    2024-05-08T17:52:36+00:00

    You have successfully applied KB5028997 to a degree it should be fixed except reagentc fails you. "The Windows RE image was not found" should not be happening as you successfully disabled Windows RE.

    But yes, the Inplace Upgrade is certain to provide a new Windows RE Image.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-05-08T14:48:19+00:00

    Many thanks! I think I may have broken something ... I haven't tried running the Media Creation Tool yet, do you know if it is ok to run i also no when there doesn't seem to be any Windows RE image any longer (I posted the CMD text as a reply to JosephT71's post)?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-05-08T14:46:31+00:00

    Aah, now I see. I tried again, but am afraid I might have screwed the computer up with my dabblings yesterday. I get the error message "The Windows RE image was not found"

    Will running the Media Creation Tool as suggested by Volume Z be able to fix this?

    This is what my CMD "conversation" today looked like:

    "

    Microsoft Windows [Version 10.0.19045.4355]
    (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>diskpart

    Microsoft DiskPart version 10.0.19041.3636

    Copyright (C) Microsoft Corporation.
    On computer: DESKTOP-3AV36DF

    DISKPART> list disk

    Disk ### Status Size Free Dyn Gpt


    Disk 0 Online 3726 GB 0 B *

    DISKPART> list disk

    Disk ### Status Size Free Dyn Gpt


    Disk 0 Online 3726 GB 0 B *

    DISKPART> sel disk0

    Microsoft DiskPart version 10.0.19041.3636

    DISK - Shift the focus to a disk. For example, SELECT DISK.
    PARTITION - Shift the focus to a partition. For example, SELECT PARTITION.
    VOLUME - Shift the focus to a volume. For example, SELECT VOLUME.
    VDISK - Shift the focus to a virtual disk. For example, SELECT VDISK.

    DISKPART> sel disk

    The arguments specified for this command are not valid.
    For more information on the command type: HELP SELECT DISK

    There is no disk selected.

    DISKPART> sel disk 0

    Disk 0 is now the selected disk.

    DISKPART> list part

    Partition ### Type Size Offset


    Partition 1 Reserved 128 MB 17 KB
    Partition 2 System 100 MB 129 MB
    Partition 3 Primary 3724 GB 229 MB
    Partition 4 Recovery 902 MB 3725 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 3726 GB 1152 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 Windows NTFS Partition 3724 GB Healthy Boot
    Volume 1 SYSTEM FAT32 Partition 100 MB Healthy System
    * Volume 3 Windows RE NTFS Partition 1152 MB Healthy Hidden

    DISKPART> exit

    Leaving DiskPart...

    C:\Windows\system32>reagentc /enable
    REAGENTC.EXE: The Windows RE image was not found.

    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>

    "

    Was this answer helpful?

    0 comments No comments
  4. JosephT71 9,210 Reputation points
    2024-05-08T02:15:55+00:00

    You are supposed to shrink the OS partition (which is 3). Your WinRE partition is 4.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2024-05-08T01:56:22+00:00

    You're having a too hard time with command line and reagentc.exe is fooling you over.

    Download and run the Media Creation Tool to do an Inplace Upgrade. Choose "Upgrade this PC now" and keep apps and files.

    https://www.microsoft.com/en-us/software-download/

    Was this answer helpful?

    0 comments No comments