Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, March 17, 2020 6:26 PM
Microsoft Windows [Version 10.0.18363.720]
(c) 2019 Microsoft Corporation. All rights reserved.
C:\windows\system32>diskpart
Microsoft DiskPart version 10.0.18362.1
Copyright (C) Microsoft Corporation.
On computer: DESKTOP-K2CP43S
DISKPART> sel dis 0
Disk 0 is now the selected disk.
DISKPART> lis par
Partition ### Type Size Offset
Partition 1 Primary 499 MB 1024 KB
Partition 2 Primary 689 GB 500 MB
Partition 3 Primary 2056 MB 689 GB
Partition 4 Recovery 7148 MB 691 GB
DISKPART> sel par 4
Partition 4 is now the selected partition.
DISKPART> det par
Partition 4
Type : 27
Hidden: No
Active: No
Offset in Bytes: 742657097728
Volume ### Ltr Label Fs Type Size Status Info
* Volume 4 RAW Partition 7148 MB Healthy Hidden
DISKPART> assign letter=t
DiskPart successfully assigned the drive letter or mount point.
DISKPART> exit
Leaving DiskPart...
C:\windows\system32>Reagentc /Setreimage /Path T:\Recovery\WindowsRE /Target C:\Windows
REAGENTC.EXE: The Windows RE image cannot be stored in the specified volume. Use the RETAIN command in DISKPART to prepare the volume and try again.
C:\windows\system32>
All replies (6)
Wednesday, March 18, 2020 3:10 AM
Hi,
Try to use:
C:\Windows\system32>reagentc /setreimage /path \?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE
Directory set to: \?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE
To get more information, please refer to the link below.
For more detail information, you can refer to:
Best Regards,
Daniel
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact
Wednesday, March 18, 2020 7:13 AM
Microsoft Windows [Version 10.0.18363.720]
(c) 2019 Microsoft Corporation. All rights reserved.
C:\windows\system32>diskpart
Microsoft DiskPart version 10.0.18362.1
Copyright (C) Microsoft Corporation.
On computer: DESKTOP-K2CP43S
DISKPART> lis dis
Disk ### Status Size Free Dyn Gpt
Disk 0 Online 698 GB 0 B
DISKPART> sel dis 0
Disk 0 is now the selected disk.
DISKPART> lis vol
Volume ### Ltr Label Fs Type Size Status Info
Volume 0 G DVD-ROM 0 B No Media
Volume 1 K System Rese NTFS Partition 499 MB Healthy System
Volume 2 C Windows NTFS Partition 689 GB Healthy Boot
Volume 3 D HP_TOOLS FAT32 Partition 2056 MB Healthy
DISKPART> lis par
Partition ### Type Size Offset
Partition 1 Primary 499 MB 1024 KB
Partition 2 Primary 689 GB 500 MB
Partition 3 Primary 2056 MB 689 GB
Partition 4 Recovery 7148 MB 691 GB
DISKPART> exit
Leaving DiskPart...
C:\windows\system32>reagentc /setreimage /path \?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE
REAGENTC.EXE: The Windows RE image cannot be stored in the specified volume. Use the RETAIN command in DISKPART to prepare the volume and try again.
C:\windows\system32>Directory set to: \?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE
'Directory' is not recognized as an internal or external command,
operable program or batch file.
C:\windows\system32>
The command did not work.
How do you use the retain command?
Wednesday, March 18, 2020 8:06 AM
Hi,
I tested your command and my command, it is my result:
You can also see this:
Best Regards,
Daniel
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact
Wednesday, March 18, 2020 8:14 AM
Microsoft Windows [Version 10.0.18363.720]
(c) 2019 Microsoft Corporation. All rights reserved.
C:\windows\system32>diskpart
Microsoft DiskPart version 10.0.18362.1
Copyright (C) Microsoft Corporation.
On computer: DESKTOP-K2CP43S
DISKPART> lis dis
Disk ### Status Size Free Dyn Gpt
Disk 0 Online 698 GB 0 B
DISKPART> sel dis 0
Disk 0 is now the selected disk.
DISKPART> lis vol
Volume ### Ltr Label Fs Type Size Status Info
Volume 0 G DVD-ROM 0 B No Media
Volume 1 K System Rese NTFS Partition 499 MB Healthy System
Volume 2 C Windows NTFS Partition 689 GB Healthy Boot
Volume 3 D HP_TOOLS FAT32 Partition 2056 MB Healthy
DISKPART> lis par
Partition ### Type Size Offset
Partition 1 Primary 499 MB 1024 KB
Partition 2 Primary 689 GB 500 MB
Partition 3 Primary 2056 MB 689 GB
Partition 4 Recovery 7148 MB 691 GB
DISKPART> sel par 4
Partition 4 is now the selected partition.
DISKPART> det par
Partition 4
Type : 27
Hidden: No
Active: No
Offset in Bytes: 742657097728
Volume ### Ltr Label Fs Type Size Status Info
* Volume 4 T RAW Partition 7148 MB Healthy Hidden
DISKPART> exit
Leaving DiskPart...
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: 238da88d-49fb-11e9-92c9-c3d8e506f5ea
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 /setreimage /path \?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE
REAGENTC.EXE: The Windows RE image cannot be stored in the specified volume. Use the RETAIN command in DISKPART to prepare the volume and try again.
C:\windows\system32>
The command did not work on this recovery partition.
How do you use the retain command?
Thursday, March 19, 2020 3:20 AM
Hi,
>>Windows RE status: Disabled
Have you already enabel Win RE?
Try to see this:
https://support.infrasightlabs.com/article/how-to-enable-winrm-on-windows-servers-clients/
Daniel
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact
Thursday, March 19, 2020 8:23 AM
For this thread I want to learn how to use the retain command.
The recovery partition was disabled because it was RAW.
The reagentc /enable command failed because it was RAW.
Format quick also failed.
Mini Tool partition wizard has a right click option to explore partitions.
The recovery partition files were present.
Somehow the NTFS file system was corrupted and displayed RAW.
When there are problems with a boot partition the partition can often be fixed or replaced.
For this thread I want to learn how to use the retain command to be able to follow the diskpart result:
Reagentc /Setreimage /Path T:\Recovery\WindowsRE /Target C:\Windows
REAGENTC.EXE: The Windows RE image cannot be stored in the specified volume. Use the RETAIN command in DISKPART to prepare the volume and try again.