Custom recovery partition on win10 enterprise LTSC


  1. Posts : 6
    windows 10 LTSC 1803
       #1

    Custom recovery partition on win10 enterprise LTSC


    Hi.
    After creating my oobe.wim from my audit.wim, now I'd like to, as I was doing in win7, adding a backup/recovery feature.

    I'm in a BIOS/MBR enviroment and I use diskpart while installing and I create, at the end of the disk0, the recovery partition, setting id=27, size=17Gb to contain the complete install.wim.
    R:\Recovery\windowsRE\winre.wim and R:\image\install.wim are the files in the partition.
    Winre.wim is customized with some drivers and scripts in it, and it's 316Mb.

    Then I used to configure REAGENT setting the paths to the winre and the install.wim, along with the bootkey to boot the partition up (F12 - 8600).
    Code:
    REAGENTC /DISABLE
    REAGENTC /SETREIMAGE /PATH R:\RECOVERY\WINDOWSRE\ /TARGET C:\WINDOWS /BOOTKEY 8600
    REAGENTC /SETOSIMAGE /PATH R:\IMAGE\ /TARGET C:\WINDOWS
    REAGENTC /ENABLE
    I got that win10 doesn't support "setosimage" no more, but I can't figure out how to do it now.
    After executing the instructions, if i type "REAGENTC /INFO", I got this (in italian):
    Code:
    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: 5161327c-63fc-11ea-8096-2046a1037476
        Recovery image location:
        Recovery image index: 0
        Custom image location:
        Custom image index: 0
    
    REAGENTC.EXE: Operation Successful.
    The custom winre.wim is taken correctly, but how can I set the directory for my custom .wim, using this method??

    here's the winre.log:
    Code:
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] ------------------------------------------------------
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] -----Executing command line: REAGENTC  /ENABLE /logpath c:\WinRE.log-----
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] ------------------------------------------------------
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Enter WinRECheckGuid
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Parameter: TargetOsGuid: : NULL 
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Exit WinRECheckGuid return error code: 0x0
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Enter WinReInstall
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Parameter: ReInstallBecauseOfBitlocker: 0
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] --Install on target OS step 1: collect info like partition list, loading reagent.xml, source winre.wim and partition
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Enumerate and log all fixed partitions:
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] --Partition info--
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{b3962755-0000-0000-0000-90d4e1000000}, PartitionName: \\?\GLOBALROOT\device\harddisk1\partition2
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Partition number: 2, offset: 969933848576, free space: 30121259008, total space: 30234636288
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] DiskNumber:1, DiskSignature:-1282005163, NTFS:1, Mbr:1, Active:0, Boot:0, BitlockerEnabled:0
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] MBR partition id: 0x7
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] DiskId: {00000000-0000-0000-0000-000000000000} 
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] --Partition info--
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{54e088f0-0000-0000-0000-501334000000}, PartitionName: \\?\GLOBALROOT\device\harddisk0\partition4
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Partition number: 4, offset: 223662309376, free space: 5347639296, total space: 16393433088
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] DiskNumber:0, DiskSignature:1424001264, NTFS:1, Mbr:1, Active:0, Boot:0, BitlockerEnabled:0
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] MBR partition id: 0x27
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] DiskId: {00000000-0000-0000-0000-000000000000} 
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] --Partition info--
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{54e088f0-0000-0000-0000-d0da32000000}, PartitionName: \\?\GLOBALROOT\device\harddisk0\partition3
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Partition number: 3, offset: 218419429376, free space: 5219938304, total space: 5242875904
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] DiskNumber:0, DiskSignature:1424001264, NTFS:1, Mbr:1, Active:0, Boot:0, BitlockerEnabled:0
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] MBR partition id: 0x7
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] DiskId: {00000000-0000-0000-0000-000000000000} 
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] --Partition info--
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{54e088f0-0000-0000-0000-d01200000000}, PartitionName: \\?\GLOBALROOT\device\harddisk0\partition2
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Partition number: 2, offset: 315621376, free space: 192562225152, total space: 218103803904
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] DiskNumber:0, DiskSignature:1424001264, NTFS:1, Mbr:1, Active:0, Boot:1, BitlockerEnabled:0
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] MBR partition id: 0x7
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] DiskId: {00000000-0000-0000-0000-000000000000} 
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] --Partition info--
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{b3962755-0000-0000-0000-100000000000}, PartitionName: \\?\GLOBALROOT\device\harddisk1\partition1
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Partition number: 1, offset: 1048576, free space: 64620978176, total space: 969932795904
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] DiskNumber:1, DiskSignature:-1282005163, NTFS:1, Mbr:1, Active:1, Boot:0, BitlockerEnabled:0
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] MBR partition id: 0x7
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] DiskId: {00000000-0000-0000-0000-000000000000} 
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] --Partition info--
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{54e088f0-0000-0000-0000-100000000000}, PartitionName: \\?\GLOBALROOT\device\harddisk0\partition1
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Partition number: 1, offset: 1048576, free space: 290934784, total space: 310378496
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] DiskNumber:0, DiskSignature:1424001264, NTFS:0, Mbr:1, Active:1, Boot:0, BitlockerEnabled:0
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] MBR partition id: 0xc
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] DiskId: {00000000-0000-0000-0000-000000000000} 
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Get downlevel ReAgent config
    2020-03-17 14:56:25, Info                         [ReAgentc.exe]  Downlevel config file path: \Recovery\ReAgentOld.xml
    2020-03-17 14:56:25, Info                         [ReAgentc.exe]  Checking for downlevel WinRE installation.
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] First round search
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Get ReAgent config
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] GetReAgentConfig Config file path: C:\windows\system32\Recovery\ReAgent.xml
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] CheckRegKey test hook (SystemSetupInProgress) present and disabled
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Update enhanced config info is enabled.
    2020-03-17 14:56:25, Warning                      [ReAgentc.exe] Failed to get recovery entries: 0xc0000225
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] winreGetWinReGuid returning 0X490
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] ReAgentConfig::ReadBcdAndUpdateEnhancedConfigInfo WinRE disabled, WinRE Guid could not be determined  (0x490) 
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] FindWinReSourceImageAndPartition No source winre.wim was specified.  Checking for a staged winre.wim.
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] FindWinReSourceImageAndPartition using winre.wim from \\?\GLOBALROOT\device\harddisk0\partition4\RECOVERY\WINDOWSRE
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] --Install on target OS step 2: detect and fix if there is any issue for winre settings
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] DetectAndFixWinReIssues nothing to do because winre is not enabled.
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] --Install on target OS step 3: check if we can keep winre.wim in the same partition if it is staged.
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] CanKeepWinReOnSamePartitionIfStaged WinRE is staged.  Checking that the staged partition is valid for WinRE.
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] MeetPartitionRequirements Partition details: {Offset: 223662309376, Free space: 5347639296, Total space: 16393433088}
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] MeetPartitionRequirements WinRE WIM size: 324106469
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] MeetPartitionRequirements Required free space: 52428800
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] NOTE: Find target partition: source partition will used
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] --Install on target OS step 5: set WinRE settings and restore system to a good state when hitting any errors
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Enter SetWinRESettings
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] RegLoadKey $OFFLINE$SYSTEM failed. Error: 0x522.
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] OEM partition, copying boot.sdi
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] boot.sdi copied
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Creating BCD entry
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] WinRE created BCD entry: : {5161327E-63FC-11EA-8096-2046A1037476} 
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Updating reagent.xml
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Set WinRE location path to: \Recovery\WindowsRE
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Set recovery guid
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Set scheduled operation: WinReNoOperation
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Set OS build version: 17763.1.x86fre.rs5_release.180914-1434
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Set Wimboot state: 0
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Set install state to: enabled
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Setting the recovery sequence for the target OS.
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Machine firmware is not EFI, nothing to do
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Creating backup of reagent.xml
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Created backup of reagent.xml
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Configuring the WinRE validation task.
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Failed to clear WIM file trusted state: 0x2
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Failed to clear WIM file hash: 0x2
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Update enhanced config info is enabled.
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] WinRE is installed
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Failed to open winre.wim: 13
    2020-03-17 14:56:25, Warning                      [ReAgentc.exe] winreValidateWimFile failed to open recovery wim (0xd) in file base\diagnosis\srt\reagent2\reagent\reagent.cpp line 3302
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] winreValidateWimFile took 16 ms.
    2020-03-17 14:56:25, Warning                      [ReAgentc.exe] WinReValidateRecoveryWimInternal failed to validate trust (0xd) in file base\diagnosis\srt\reagent2\reagent\reagent.cpp line 3610
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] WinReValidateRecoveryWimInternal took 31 ms.
    2020-03-17 14:56:25, Warning                      [ReAgentc.exe] WinReValidateRecoveryWimInternal failed: 0xd
    2020-03-17 14:56:25, Warning                      [ReAgentc.exe] winreConfigureValidationTask failed: 0xd, a non critical error
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Completed the WinRE validation task.
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Creating backup of customization file
    2020-03-17 14:56:25, Warning                      [ReAgentc.exe] Recovery file not found at C:\windows\system32\Recovery\ReCustomization.xml
    2020-03-17 14:56:25, Warning                      [ReAgentc.exe] winreBackupRecoveryFile (C:\windows\system32\Recovery\ReCustomization.xml, ReCustomization.xml) failed, Err: 2
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Created backup of customization file
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] SetWinRESettings return with error code 0x0
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] WinReInstallOnTargetOSInternal WinRE installation completed successfully.
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Exit WinReInstall return value: 1, last error: 0x0
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Enter WinReSetConfig
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Parameters: configWinDir: NULL
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Update enhanced config info is enabled.
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] WinRE is installed
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Exit WinReSetConfig return value: 1, last error: 0x0
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] Clear non critical error when enabling auto repair
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] ------------------------------------------------------
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] -----Exiting command line: REAGENTC  /ENABLE /logpath c:\WinRE.log, Error: 0-----
    2020-03-17 14:56:25, Info                         [ReAgentc.exe] ------------------------------------------------------
    Can you help me with this?
    I found the tutorial here , but it's not fitting my case I think...
    Hope somebody can help me! Thanks in advance.
      My Computer

  2. Kyhi's Avatar
    Posts : 3,545
    Windows 3.1 to Windows 10
       #2

    I got that win10 doesn't support "setosimage" no more
    Guess that you really did not "Get" that Windows 10 No Longer Supports Setting an OS Recovery Image (ie your Custom.wim)
    Windows 10 uses the Files in the WinSxS Directory and a Custom Provisioning Package for Windows Recovery/Reset
      My Computer


  3. Posts : 6
    windows 10 LTSC 1803
    Thread Starter
       #3

    Kyhi said:
    Guess that you really did not "Get" that Windows 10 No Longer Supports Setting an OS Recovery Image (ie your Custom.wim)
    Windows 10 uses the Files in the WinSxS Directory and a Custom Provisioning Package for Windows Recovery/Reset
    Guess I did not... I'm finding a lot of information and I've been confused... and I guess I need to remake everything from scratch then, following that tutorial I linked.. By the way I don't find anything related to a custom bootkey for recovery..

    Or maybe you can link other resources/tutorial to me?
    Last edited by soleliquido; 17 Mar 2020 at 10:46.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 13:04.
Find Us




Windows 10 Forums