MHimken / WinRE-Customization

WinRE Customization to apply patches, drivers and soon™ language packs
https://manima.de/2023/01/modify-winre-patches-drivers-and-cve-2022-41099/
MIT License
61 stars 8 forks source link

Something went wrong during imaging, but the script can not currently handle this situation #9

Closed bedo2991 closed 6 months ago

bedo2991 commented 7 months ago

First of all, thanks for the nice script :)

Situation: Windows 10 Home 22H2 image

As far as I know, the Recovery currently used inside C:\Recovery The first Recovery Partition is not used.

What am I trying to achieve? Move the Recovery partition to the Unallocated partition between C and D.

Command: Just running the script.

Log:

<![LOG[Patch-WinRE started at 04/04/2024 15:22:44]LOG]!><time="15:22:44.351944" date="04-04-2024" component="WinREPatchCore" context="" type="1" thread="" file="">
<![LOG[Verifying general prerequisites]LOG]!><time="15:22:44.369446" date="04-04-2024" component="WinREPrerequisites" context="" type="1" thread="" file="">
<![LOG[1. Disk must use GPT formatting style]LOG]!><time="15:22:44.371261" date="04-04-2024" component="WinREPrerequisites" context="" type="1" thread="" file="">
<![LOG[2. Recovery Partition must exist, unless -CreateWinREDrive is used]LOG]!><time="15:22:44.372900" date="04-04-2024" component="WinREPrerequisites" context="" type="1" thread="" file="">
<![LOG[3. There must be a WinRE available online or offline]LOG]!><time="15:22:44.374313" date="04-04-2024" component="WinREPrerequisites" context="" type="1" thread="" file="">
<![LOG[4. Multiple writeable partitions on the same disk are not supported]LOG]!><time="15:22:44.375669" date="04-04-2024" component="WinREPrerequisites" context="" type="1" thread="" file="">
<![LOG[5. (-CreateWinREDrive) WinRE must exist in in the default location]LOG]!><time="15:22:44.377075" date="04-04-2024" component="WinREPrerequisites" context="" type="1" thread="" file="">
<![LOG[Verifying the disk is a GPT formatted disk. BIOS disks are not supported]LOG]!><time="15:22:44.380081" date="04-04-2024" component="WinREPrerequisites" context="" type="1" thread="" file="">
<![LOG[Start detection of recovery partition(s)]LOG]!><time="15:22:45.176217" date="04-04-2024" component="WinREPrerequisites" context="" type="1" thread="" file="">
<![LOG[Retrieving current WinRE status]LOG]!><time="15:22:45.181281" date="04-04-2024" component="WinREStatus" context="" type="1" thread="" file="">
<![LOG[Recovery Agent is enabled]LOG]!><time="15:22:45.322331" date="04-04-2024" component="WinREStatus" context="" type="1" thread="" file="">
<![LOG[Verify WinRE.wim is available (online or offline)]LOG]!><time="15:22:45.507518" date="04-04-2024" component="WinREPrerequisites" context="" type="1" thread="" file="">
<![LOG[Retrieving current WinRE status]LOG]!><time="15:22:45.509529" date="04-04-2024" component="WinREStatus" context="" type="1" thread="" file="">
<![LOG[Recovery Agent is enabled]LOG]!><time="15:22:45.634743" date="04-04-2024" component="WinREStatus" context="" type="1" thread="" file="">
<![LOG[Verifying the potenially discovered partition for eligibility]LOG]!><time="15:22:45.764932" date="04-04-2024" component="WinREPrerequisites" context="" type="1" thread="" file="">
<![LOG[The OS partition harbors the recovery partition.]LOG]!><time="15:22:45.859846" date="04-04-2024" component="WinREPrerequisites" context="" type="3" thread="" file="">
<![LOG[Something went wrong during imaging, but the script can not currently handle this situation, please contact me.]LOG]!><time="15:22:45.861845" date="04-04-2024" component="WinREPrerequisites" context="" type="1" thread="" file="">
<![LOG[Prerequisites could not be confirmed, please consult the log]LOG]!><time="15:22:45.863593" date="04-04-2024" component="WinREPatchCore" context="" type="3" thread="" file="">
dreary-ennui commented 7 months ago

@bedo2991 you've got a fairly complex partition situation going on there that might be difficult for this script to accommodate. If you're just trying to fix this one machine, you might be best served (and get a faster resolution for your issue) by just doing things manually.

You'll want to check out this guide - https://support.microsoft.com/en-us/topic/kb5028997-instructions-to-manually-resize-your-partition-to-install-the-winre-update-400faa27-9343-461c-ada9-24c8229763bf - but you'd start at Step 5.

MHimken commented 6 months ago

After looking at this issue once more: I can't really accommodate for a complex partitioning such as this. Thanks for reporting this!