r/techsupport • • 10h ago

Open | Windows Missing system 32

I lost power while my pc was restarting and had to change motherboards but now it says I’m missing system32 boot file. I’ve tried every online guide, please help, I’ve got the bootable drive already

Error:

Recovery
Your PC/Device needs to be repaired
The application or operating system couldn't be loaded because a required file is missing or contains errors.
File: \WINDOWS\system32 \winload.efi
Error code: 0xc000000f
You'll need to use recovery tools. If you don't have any installation media (like a disc or USB device), contact your PC administrator or PC/Device manufacturer.
Press Enter to try again
Press F1 to enter Recovery Environment
Press F8 for Start-up Settings
Press Esc for UEFI Firmware Settings

2 Upvotes

2 comments sorted by

1

u/Glock-Guy 9h ago edited 9h ago

First try recovery environment > command prompt and sfc/scannow & DISM /Online /Cleanup-Image /RestoreHealth

If not, womp womp >

Plug in USB with the media creation tool

Press Esc for UEFI Firmware Settings

Find Boot settings

Ensure USB is 1st in boot order/priority

Save and exit

Edit: First see if you can rebuild the corrupt system files, but more than likely you'll need to re-install Windows.

1

u/Xeno_Zed 8h ago edited 7h ago

You'll definitely need to repair from the recovery environment or installation media using sfc or DISM, but know when using these commands in these recovery environments, you need to add the right parameters for it to work correctly:

First try SFC in a command prompt within the recovery environment. You need to specify which volume and directory to scan while in the recovery environment, otherwise the recovery environment would just scan whatever partition it lives within, not your Windows system partition:

sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows

See if that does the trick. If not the Windows image SFC scan is using is also damaged, so you'll need DISM and installation media to repair it:

First you'd need to find out what volume letter Windows currently has, being in the recovery or installation environment often changes it from C: to D:

diskpart

list volume (see which letter Windows is)

exit

Then you need to make a temporary scratch directory, because the recovery environment might not have enough memory resources to run the DISM command: (assuming the drive letter is D. make sure no other USB drives, or extra drives are plugged in besides the installation media USB, and majority of the time the Windows volume will be D: and your installation USB will be E:)

md D:/Scratch

Now you can run the DISM command. For the "install.wim:1" section of the command, replace the number depending on your version of Windows 11. Home edition is 1, Pro edition is 3:

DISM /Image:D:\ /Cleanup-Image /RestoreHealth /Source:WIM:E:\sources\install.wim:1 /ScratchDir:D:\Scratch /LimitAccess

Let that run and don't interrupt it. It can look like it's stuck around the 60%-70% range, but it normally does that. It can take 30 minutes to an hour. If it takes longer than 2 hours, something is wrong. If everything is done correctly but it still fails for some reason, test your RAM with memtest and see if it has errors.

Edit: Alternatively, you could copy a good version of winload.efi from another Windows computer, but that computer has to be similar to yours. Same Windows edition and version, and x64 based. Copy the file from another computer to a USB, found in:

C:\Windows\System32\winload.efi

Pop this USB into a port, then enter the recovery environment (without the installation media), open cmd prompt, and do the same thing with diskpart where you confirm which drive is which letter, then (assuming Windows is C: and the USB is D:) :

copy D:\Windows\System32\winload.efi C:\Windows\System32\

This has worked for me in testing on Windows VMs for other missing system files, you can't do it for some, but winload.efi you can get from another computer.