Random reboot on command prompt wpeinit

Solved
Needhelp84 -  
 Needhelp84 -

Hello,

After booting into a WinPE, I restart into my Windows 10, but then it starts generating a bug, so let me explain, it keeps restarting into "automatic repair" followed by a command prompt where it says:

"X:\Windows\System32>wpeinit

X:\windows\system32>windowspowershell\v1.0\powershell -executionpolicy bypass -file X:\Sources\Recovery\Tools\CreateRecovery.ps1"

I have tried everything, a chkdsk and a sfc /scannow, but each time access is denied or there is another problem that prevents me from completing the command line execution.

Please help me, I am out of ideas. Thank you in advance.


12 answers

  1. fabul Posted messages 42165 Registration date   Status Moderator Last intervention   6 067
     

    Hello,

    Have you removed your WinPE key?

    0
  2. fabul Posted messages 42165 Registration date   Status Moderator Last intervention   6 067
     

    Because it looks like he's trying to boot from it.

    X:\ = drive letter for WinPE normally.

    Was it a WinPE that you made yourself?

    0
  3. Needhelp84
     

    Yes, that's exactly why I don't understand.

    No, I had taken my PC to a repair shop and they explained to me how they proceeded.

    0
  4. fabul Posted messages 42165 Registration date   Status Moderator Last intervention   6 067
     

    What year is your PC?

    (For the drivers)

    0
  5. fabul Posted messages 42165 Registration date   Status Moderator Last intervention   6 067
     

    If you have another PC, AOMEI PE Builder and its WinPE Environment should include the drivers; otherwise, you can add them when creating the WinPE USB drive.

    If you have data to recover from another PC, you can download AOMEI PE Builder and create a WinPE USB drive to copy your data, browser profile, etc., elsewhere than on C:\.

    https://www.ubackup.com/pe-builder.html

    If the PC is old, you need to create the USB drive in MBR mode.

    If it is recent (Windows 8 or newer), use GPT mode for EFI.

    Boot from it using the Boot menu key of the PC.

    https://www.malekal.com/liste-touches-acces-bios-boot-menu-constructeur/

    If you don’t see it, you can search on Google "[Brand Model] Boot Menu Key".

    -----------------------------------------------------­------------------------­---------------------------------------------------------------------------------

    Then, still from another PC, use the tool to download the ISO to create a USB drive to update, repair, or reinstall Windows.

    Windows 11 if compatible; you can check with WhyNotWin11 (when you have a working Windows).

    https://github.com/rcmaehl/WhyNotWin11/releases

    Windows 10 https://www.microsoft.com/fr-fr/software-download/windows10/

    Windows 11 https://www.microsoft.com/fr-fr/software-download/windows11

    When you have the Windows ISO file, you can create your USB drive with Rufus.

    https://rufus.ie/en/

    If the PC is old, you need to create the USB drive in MBR mode.

    If it is recent (Windows 8 or newer), use GPT mode for EFI > For Windows 11 GPT for EFI.

    Boot from it using the Boot Menu key of the PC as explained above.

    Choose "Custom Installation" (not upgrade).

    Delete all system partitions and create a new one (this deletes the data).

    0
  6. Needhelp84
     

    I have already put all my data on an external drive, and I have a bootable Windows 10 USB stick, so I boot from it and choose "custom installation," right?

    0
  7. Needhelp84
     

    I have already reinstalled a Windows 10 image, but I still have the same problem as if the PC is looking for drive X, even though it is not there...

    0
  8. fabul Posted messages 42165 Registration date   Status Moderator Last intervention   6 067
     

    Is there a leftover of WinPE on one of your internal disks?

    In the BIOS, choose the correct disk in the 1st Boot position

    Save & Exit

    0
    1. Needhelp84
       

      I followed your advice, just before that, I disabled automatic repair using a command line and here’s what it shows me:

      Error code: 0xc0000001

      I don't know if this is better than my previous problem^^.

      0
  9. fabul Posted messages 42165 Registration date   Status Moderator Last intervention   6 067
     

    Are you able to boot from AOMEI PE Builder or not?

    Clean up your disks.

    And reinstall Windows from one of the Microsoft links I provided, not with an old DVD or ISO.

    0
    1. Needhelp84
       

      Okay, it's done, I've reinstalled Windows, I just have to recover my data!

      Thank you!

      0