How do I repair Windows 10 with Command Prompt?

A black screen and a Windows 10 PC that won’t boot often means that your master boot record is on the fritz. Here are two ways to fix it.

In a recent article, we looked at resolving issues with black screens in Windows 10 with some basic troubleshooting tips. But sometimes, Windows 10 fails to boot because of problems with the master boot record. In these cases, repairs need to be made to the master boot record to get things up and running again. Fortunately, the Windows 10 recovery environment includes an automated option for doing just that. And if that doesn’t work, you can do it manually in the command prompt. Read on to find out how.

Why Won’t My Windows 10 PC Boot?

The Windows 10 boot process is quite simple. When your computer starts, the BIOS or UEFI Firmware is loaded, which performs a small set of checks on your hardware called the Power On Self Test (POST). The BIOS then scans the hard disk master boot record, which loads an essential file into main memory called WINLOAD.EXE. This kicks off the start-up process by loading the NTOSKRNL.EXE (NT Kernel, the heart of Windows) and HAL (Hardware Abstraction Layer.) Windows 10 then performs tasks such as initializing your hardware like your mouse and keyboard and reading the Windows Registry and user profile.

If you see a black screen with gray text that reads “Windows Boot Manager” with an error along the lines of “Status: 0xc0000605 Info: A component of the operating system has expired,” then it means something went wrong with WINLOAD.EXE.

How do I repair Windows 10 with Command Prompt?
How do I repair Windows 10 with Command Prompt?

This is obviously not a good thing. But it’s not the end of the world either.

Performing a Startup Repair

The first thing you can try is booting into the recovery environment, if possible, and then performing a startup repair. To access the recovery environment, turn your computer on and off three times.  While booting, make sure you turn off the computer when you see the Windows logo. After the third time, Windows 10 will boot into diagnostics mode. Click Advanced options when the recovery screen appears.

How do I repair Windows 10 with Command Prompt?
How do I repair Windows 10 with Command Prompt?

Click Troubleshoot.

How do I repair Windows 10 with Command Prompt?
How do I repair Windows 10 with Command Prompt?

Click Advanced options.

How do I repair Windows 10 with Command Prompt?
How do I repair Windows 10 with Command Prompt?

Then, click Startup Repair.

How do I repair Windows 10 with Command Prompt?
How do I repair Windows 10 with Command Prompt?

Fix Windows 10 Winload.exe Using the Command Prompt

If you are unable to perform a startup repair, then your next option is to try using your Windows 10 installation media to fix the boot error.

If you don’t have installation media, you will need to go to a working computer and Create a Windows 10 USB Bootable Flash Drive. You can also go to a working Windows 10 PC and create a recovery drive.  When using a USB drive, make sure to set up your BIOS to boot from the USB drive.

After booting into setup, choose the Repair Computer option > Troubleshoot > Advanced Options > Command Prompt. If you are using a recovery drive, click Troubleshoot > Advanced Options > Command Prompt.

How do I repair Windows 10 with Command Prompt?
How do I repair Windows 10 with Command Prompt?

Once you have the command prompt up on the screen, you will need to issue a set of commands to find and resolve issues that might be preventing your computer from booting.

Type BOOTREC /FIXMBR and hit .

This command will attempt to fix any corruption issues with the master boot record.

If all goes well, you should see The operation completed successfully.

How do I repair Windows 10 with Command Prompt?
How do I repair Windows 10 with Command Prompt?

Next, type BOOTREC /FIXBOOT then hit .

This command will attempt to write a new boot sector on the hard disk if Windows detects damage. Usually, this happens in cases where an older version of Windows was installed, or a non-compatible operating system such as Linux was installed.

How do I repair Windows 10 with Command Prompt?
How do I repair Windows 10 with Command Prompt?

If you are seeing an error such as Boot Manager is Missing, then the BOOTREC /RebuildBcd command might be able to fix it. This operation can also restore boot entries for older versions of Windows if you have a dual boot configuration.

How do I repair Windows 10 with Command Prompt?
How do I repair Windows 10 with Command Prompt?

If BOOTREC /RebuildBcd does not work, then Microsoft recommends you back up your BCD (Boot Configuration Data) store, then run the BOOTREC /RebuildBcd command again. Here is how you do it.

Type each command then hit :

  • bcdedit /export C:\BCD_Backup
  • c:
  • cd boot
  • attrib bcd -s -h -r
  • ren c:\boot\bcd bcd.old
  • bootrec /RebuildBcd

Another option if you are dual booting with older versions of Windows such as Windows 7 is the BOOTREC /ScanOs command. The ScanOS command can find and restore entries for older versions of Windows.

What if None of These Options Work?

Your next best option is to try salvaging your data and then reinstalling Windows 10 and your applications. If you have your Windows 10 install media, you can boot from it, then perform a custom install. This will create an archive of the old installation called Windows.old. You can then recover your personal files from this folder. Make sure you perform a custom install that migrates your Windows.old data. Otherwise, all your data will be erased.

How do I repair Windows 10 with Command Prompt?
How do I repair Windows 10 with Command Prompt?

If you don’t want to risk overwriting your data by reinstalling Windows, check out this article on How to Recover Data from a Hard Drive that Won’t Boot.

Conclusion

That’s a look at repairing a broken Windows 10 installation. While these occurrences should be exceedingly rare for most everyday users, they can occur during riskier operations, like reinstalling Windows, resizing partitions, or setting up a dual boot. While the steps above can help, it’s always a good idea to perform a thorough backup in advance.

65 Comments

65 Comments

  1. Steven Wright

    The line ” BOOTREC /FIXMRB” should read  “BOOTREC /FIXMBR”

    Reply

    • Steve Krause

      Good catch Steven! Thanks for the comment. Article updated!

      Reply

      • holdum333

        Hey Steve! Hope you are doing well old friend.

        Reply

      • Yan

        Still, what if windows 10 Laptop does nit use MBR but GPT? This step could be dangerous.

        Reply

    • Hugh Colby

      All the “solutions” are totally ridiculous. There are millions of PC owners to whom all these complicated, geeky instructions will be gobbledegook. Microsoft have been appalling on this issue and, should, to the relief of people unwise enough to have upgraded to Windows 10, be sending out an automatic ‘patch’ to disinstall 10 and move the pc back to a stable version. I, fortunately also have a MacBook. What a splendid bit of marketing Microsoft have perpetrated for Apple proucts.

      Reply

      • PJBeee

        If I can boot from installation media (USB stick, for example), go to a command prompt, browse to my boot drive and see the files, then THERE IS NO EXCUSE – THE INSTALLATION MEDIA SHOULD EASILY FIGURE OUT HOW TO GET MY SYSTEM TOO BOOT WITHOUT ME JUMPING THOUGH HOOPS.

        And sometimes I can’t get Windows 10 to boot at all, especially when recovering a backup; there are even more issues with NVME drives. In some of these cases, the so-called “troubleshooting” is a joke. Windows should also easily allow changing from UEFI to legacy boot.

        I’m an experienced tech, and dealing with this is just crazy. Microsoft, GET WITH THE PROGRAM. You have seriously fallen down on the job here.

        Reply

      • Vladimir

        Right Hugh. I’d also add to this that if they don’t have knowledge then not even try doing these fixes. When Win10 can’t handle problems that have anticipated by vigorous (and mostly very good programmers) chances that you can restore system are under score.

        Reply

    • jerome

      What’s next if after entering BOOTREC/RebuildBcd as shown above and the response is Successfully scamnex windows installations. Totoal identifiex windows installations:0 The operation completed successfully.

      Reply

      • Oluwatosin

        After a failed Ubuntu installation due to corrupt files, I ended up with an unbootable system. I couldn’t boot into my Windows 10.
        Tried the above and didn’t work.
        The /fixmbr always claims to be successful, but /fixboot comes up with “not found”.

        I had to boot Ubuntu live usb, then marked my windows partition as bootable.

        Thereafter, I followed the sequence
        /fixmbr “successfull”
        /fixboot “access denied” ?!!!
        /rebuildbcd “successful”

        Finally I was able to boot.

        Reply

        • Steve Krause

          Great news Oluwatosin. Thank you for sharing the final fix for your system.

          Reply

  2. Kevin Clemmer

    Easy BCD from NeoSmart is a superb way to clear up most of these issues as well, and it’s free for non-commercial use. Might take a look at it if you haven’t yet…I build computers for a living and I’ve been using it for years. It’s ESPECIALLY helpful for multi-boot systems (I have 4 bootable drives on mine: Win 10 Pro, LINUX, Win 7 Ult. and Win 10 Home)…this was a godsend for me, as 2 of those OS’s boot from M.2 drives, 1 from a standard HDD and 1 from an SSD… that tends to scramble ANY boot record :-)

    Reply

    • John Rozsa

      Easy BCD from Neosmart screwed up my computer royally and I advice against using it. There are no instructions on how to use it and it disabled my computer completely. I had to purchase a new Windows 10 to fix the damage it caused. Don’t use this app.

      Reply

  3. Richard

    Thanks Guys for the very Helpful Post!! Also for the “Easy BCD from NeoSmart” advice.

    Reply

  4. dobi joseph

    You are the MAN! I tried hundreds of suggestions, nothing worked. I never heard about this “turning the unit on and off 3 times thing” but it worked just like you said….
    Thank you very much…

    Reply

  5. P

    Tried everything but had never heard of turning on and off 3 times. Tried this and followed your instructions and it has appeared to work. Thanks so much

    Reply

    • sam phillippe

      didn’t work for me. keyboard is locked out and keep getting choose keyboard but can’t Have tried other so called solutions to no avail. Plain fed up with Microsoft. All my info is or will be lost….

      Reply

      • happyhouser

        Before you give up go see a competent tech. I’ve been doing this stuff for 29 years and making a living at it. These problems are not hard to solve for an experienced tech. It might cost $50 but your time is worth more and the stress is bad for your heart.

        Reply

  6. aman

    it worked thank u thank u thank u

    Reply

  7. Scott

    I have the above problem and none of the solutions here worked for me. I went back to custom installation, choose the drive partition and clicked format. I get to 48% on getting files ready for installation and get an error every time at 48%. 0x80070017 error code is what I get. I figured formatting the drive partition would remove any corrupted files but I still can’t reinstall win 10.

    Reply

  8. Harry

    I am using Insider Preview 15048.

    Norton informed me it needed to restart after doing an update, and the system failed to reboot into Windows.

    I got to a command prompt in Advanced Options, and bootrec /fixboot, bootrec fixmbr completed correctly. bootrec /rebuildbcd only finds C:\Windows.old\WINDOWS

    When I follow your instructions for bcdedit, there is no C:\boot folder.

    Any suggestions?

    Reply

  9. Sammy

    Omg i cant believe this really worked was stuck on a white screen all night tried to do a system restore and it keep saying something about an error occurred followed your steps and boom im back in to my pc thank you your the man

    Reply

  10. Abhi

    Thank you so much for this article!!!
    You just saved me so much trouble. Tried almost everything out there and nothing worked.
    Finally came across this and I was able to get Win10 to work
    Windows su$&@ and you rock!!!

    Reply

  11. m m tkaczuk

    No use to me as I get MBR error 1 Press any key to boot from floppy but nothing works, so nothing above is even vaguely useful to me as I can’t get past this 1st screen

    Reply

  12. Cheryl

    have tried several things including easy recovery essentials and nothing has worked – drive is locked and cannot get files even though i can see them when using recovery system

    Reply

  13. Pj

    What do you do next after successfully doing all the boots?? Do I just press the off button and turn it on again????

    Reply

  14. Lisa

    My computer comes on but the screen to sign on dosent come on. The circle just keeps going around and around. What can I do now?

    Reply

  15. Vince

    I have the exact same problem lisa

    Reply

  16. David S.

    Thanks! Worked like a charm! Couldn’t get my dual boot Windows 10 to start up, then the dual boot selection wasn’t showing up. This fixed them both!

    Reply

  17. shabab

    i have 4 OS in one pc and my bootmgr was corrupted, it recovered and it work fine

    thanks

    Reply

  18. Davexnet

    Any special procedure for adding an XP partition to the BCD, rebuildbcd does not
    find it, so consequently the boot menu that should offer me a choice of Windows 10 and
    “older versions of Windows” does not appear and it boots directly to Windows 10

    Reply

  19. Drmatur

    Thanks a lot. After struggling 2 weeks
    this article helped me recover boot system.4 operating systems were operating. 3 times i repeated the procedure. So systematic presentation.

    Reply

  20. Gaurav khurana

    2 simple commands to solve a complex problem. Thanks a lot

    Reply

  21. Hthrfox

    How long should this take once your reach scanning all disks for windows installation? It has been several hours and all it says is please wait, since this may take a while.

    Reply

  22. Jacqueline

    Hi,

    Hope you can help me out.. I feel im almost there but not quite!

    BOOTREC /FIXBOOT gives back an access denied prompt.

    When trying
    bcdedit /export C:\BCD_Backup
    c:
    cd boot

    it cannot find the cd boot path.

    anny suggestions?

    Reply

    • henry

      Hi Jacqueline,

      I have the exact same problem as you when truing to fix this issue. Did you manage to solve it in the end? if so, how?

      Many thanks,
      Henry

      Reply

      • Shauna

        I’m also having this exact issue. Did either of you have luck fixing it?

        Reply

        • sanjaya

          try this;
          type bootsect/nt60 ALL
          press ENTER and retype BOOTREC /FIXBOOT

          Reply

          • Sophal Sreng

            WOW…THANK YOU….SANJAY….try this;
            type bootsect/nt60 ALL
            press ENTER and retype BOOTREC /FIXBOOT

          • Avraham

            You are a genius my Indian friend. This fixed my issue.

          • Prana

            Sanjya your suggestion rendered all my Linux partitions non bootable

  23. Relieved

    A Windows 10 update had my PC in a loop where it would not load Windows. After days of searching for an answer your post is the first to tell me how to get into recovery to repair (or other options) my PC. Thank you for this article and information!

    Reply

  24. John W Davis

    My trouble after reformat and reinstall twice, after a few days I will get a crash and another Boot failure.

    Reply

  25. ali

    It works
    Thanks alot

    Reply

  26. Henrik Österberg

    Hi, I like the info here.
    I tried the automatic startup repair at first with no success and also tried a previously suggested solution on youtube which involved copying over the files in “the system32\config” dir.

    After these 2 methods failed to fix it for me I unplugged 2 of my harddrives.
    The reason being that my system boots of a NVME ssd which required some tinkering with windows 10 + bios to get it booting smoothly because it kept wanting to prioritize booting off my regular harddrives.
    fortunately for me I just had to slide the 2 drives out an inch or so inside their mounting cradles and then rerun the automatic startup repair utility and I was back in windows the next minute. (after hours of scratching my head looking at the spinning icon before i got this done)

    Reply

  27. Scott Lowers

    What I don’t think you get is I have a black screen I can’t get to the command prompt I can’t change my boot order I can’t boot in safe mode.

    Reply

    • Steve Krause

      Hi Scott,

      Take a look at this article here – https://www.groovypost.com/howto/fix-black-screen-windows-10/

      It gives you several options when dealing with Black Screen issues.

      Reply

  28. ronni

    when i type BOOTREC /FIXBOOT it says access denied please help

    Reply

    • Steve Krause

      Hi Ronni – be sure you are running the command prompt in Administrator mode. ie: Press Windows Key > Type CMD > Right Click Command Prompt > Click Run as Administrator.

      You also need to be an Admin on your PC also.

      Reply

      • ronni

        well i ran cmd from the repair pc screen so dont how to get cmd into administrator mode and am i an admin on my pc when there is only on user and it is me

        Reply

      • Jeff

        If you can’t get Windows to boot (the focus of this article), then you can’t use the Windows key plus r to run things as an admin.

        Reply

  29. John W

    I typed “BOOTREC/FIXMBR” and it worked.

    Then I typed “BOOTREC/FIXBOOT” and it said “Access denied.”

    So I exited and tried to reboot and was able to successfully boot up.

    Reply

  30. Jhon

    When I tried BOOTREC /FIXBOOT
    It showed access is denied

    Reply

    • Steve Krause

      Make sure you launch the cmd window as Administrator. If you need help doing this, follow this how-to : https://www.groovypost.com/howto/microsoft/use-windows-key-r-run-as-administrator/

      Reply

      • Bom

        The issue is:
        Windows 10 Won’t Boot

        How to get cmd admin in this situation.

        Reply

  31. Jay Berryl

    Thanks Steve, these instructions are pretty clear, except:

    1. a bit confusing from which command prompt to run the steps from. Internal hard drive c:\ and bootable thumb drive e:\. One would think c:\ since that is the drive’s boot record you are attempting to repair.

    2. Booting from the thumb drive allows me to boot into safe mode and transfer some current files created since my last back-up, to the back-up drive. Is there also a repair program that will do this in Safe mode?

    Reply

  32. Craig W.

    6/28/2019: my rig is a custom built OEM (no installation media whatsoever & shop that built it liquidated all 8.0-10 after the 8.1 debacle years ago & only carries Win 7 to this day) windows 8.0 > to free 8.1 > free 10 ~ 3 years ago.

    While mid game of MTG Arena, my screen appeared to simply melt away to backlit black screen. Reset button on tower produced automatic repair menu.

    Attempted simple restart offered which failed yet produced a link for the “SrtTrail.txt” log file, will get to that in a moment. For 13 days I’ve meticulously attempted all auto repair menu functions & all have failed. Advanced boot options from same menu are un-clickable. Did I mention I’m not tech savvy?

    Came across explicit specific instructions for MBR repair in the offline CMD. All failed. After several bottles of Summerfest and newfound bravery with meager understanding of CMDi plugged in the name of the log file (shortly after all the boot rec tries & receiving “error code 0x82f: a binary is corrupt…”) which showed the resolution, per this SrtTrail.txt file, is the need to abort pending updates & that I failed to do so. Prior to this to week accelerated hair loss program, less than 30 minutes before original black screen, of spent an hour watching TWO cumulative updates plus THREE tertiary updates topped off by malicious software removal tool download & execution logging into game a while only after making sure my OS was fully up to date & running a MWB threat scan. As previously stated, me not tech savvy so me must play by The Numbers. I have a Seagate ext HDD for file and system backup for about 8 months now, making backups every week. This is useless as my rig ( 7 years old and not a spec of dust inside tower because I respect my electronics that much) won’t boot properly. It also appears my drives have been ‘re-lettered’ as CMD continues to start in drive X. I learned how to cd to reach listed drive, how to rename playing musical chairs alphabet but resisted as destruction is assured that route. Unplugging the Seagate changed nothing. Unplugging the SATA C: drive produced strange syntax repeating word soup ending in “… key to boot setup.” with no automatic startup repair available. Plugged it back in, so my very old but until now reliable HDD C: drive, imo, is accessible and readable. My rig is MSI 7721 v1. 3 Black edition FM2-A75MA-E35 with AMD APU 6500K, XFX Ghost Thermtech HD 7770 GPU from Radeon w/4G DDR4, & 2RAM sticks for 8G of board RAM. I’m in that case every month white glove & qtip treatment (yes static bleed off wrist strap) dusting each heat sink fin on CPU & GPU & PS. Even dust the cables & hold fans when canned air used. Rig isn’t dodgy, just old.

    What more info need I supply to aid you super techs in guiding me through this? I can SS the log file but how to upload image or I could share Drive link?? Will the corrupt binary be resolved if I can successfully abort pending updates, or is that the next step in this premature aging process? This the only form able to print all I’ve typed and MS locked all threads regarding like three years ago. Thanks sincerely for any and all time and consideration.

    Reply

  33. Luxius

    When installing windows 10, does it delete your personal files?Please for a reply.

    Reply

  34. Bela

    my dell inspiron is stuck. it won’t reboot to windows it won’t restart
    or repair and I tried everything on their dumb blue screens. nothing
    worked. even used command prompt and instruction to fix boot restart
    and nothing worked. the dell scanning show everything working! sfc
    scannow says everything is fine! this is absurd. I tried to reboot
    with usb and it won’t work. this is 2nd dell best buy replaced with
    same issue and now refuse to refund money! them and Dell can go to HELL.

    Reply

  35. alex

    what if you dotn get the window with windows repair and just loops in that error screean ?

    Reply

  36. Carl Jacka

    When using the command line: BOOTREC /FIXBOOT, I receive the message :Access is denied.

    How can i fix this?

    Reply

  37. Raul Cortes

    Just to make a contribution with something that worked for me, very important, try this only after all bootrec related commands in recovery mode have failed. Is very time-consuming, like half a day, and is only worth it if reinstalling your PC to its former status is even more time-consuming and somehow critical for you.

    I’m assuming that, if you are willing to try this, you are desperate, maybe considering reinstalling Windows for good, don’t rush and get doing things, read this carefully to the bottom, then you decide by yourself. If you don’t feel like putting this into practice because too many details are missing, that possibly means that you need to reach out for some help, and trying on your own is not a good idea. Show this to your helper, if your savior can’t make head or tails of this, or is telling you that only full Windows install will do it, go for a second opinion and third opinion, you are either talking to a bad technician or you genuinely don’t meet all conditions for this procedure have some hope to work for you.

    You will need:

    – This is not a data recovery process. To be able to access your Windows partition from rescue mode, or whatever method you can use to confirm your information is not destroyed yet. Your Windows installation must be there, without damage that is beyond repair.

    -An auxiliary computer with Internet, for the sake of these instructions, preferably a PC, but any OS will do.
    -An auxiliary hard drive at least as large as your non-booting drive, can be internal or USB. All its information will be lost forever, don’t use your “games” hard drive.
    -A USB stick.
    -If your non-booting hard drive has physical damage, a new hard drive at least as large as the one you are replacing.

    Download Clonezilla and burn it into the USB stick using Rufus to make an image from your boot hard drive, I will intentionally avoid the step by step details, so you can notice yourself if you need to reach out for help. You might need to fiddle with your BIOS/UEFI to boot from the pen drive. Once you are into doing the cloning, MAKE SURE you choose a FULL DRIVE clone to local drive clon (a USB drive is still local), depending on your expertise level you might be able to do more sophisticated approaches, but let’s keep it “simple”.

    WARNING:

    -Be careful to copy from your boot drive towards the auxiliary hard drive, not the other way around.
    -DON’T use a drive with valuable data. All the data in the auxiliary drive will all be erased, regardless of how much available space is there left.

    Now you have a clone from your bogus boot hard drive.

    Next step, without fear, make a full clean Windows 10 reinstall. If you think or know your drive is physically damaged, and need to replace it, I suggest you to before installing, do a full drive clone from your aux drive to the new drive, so all ID’s will remain the same, which will avoid windows complaining when you try to boot.

    Once Windows is installed and booting fine, reboot with CloneZila, and this is super important, clone back from your auxiliary drive the Windows PARTITION only, leave the rest untouched, please note that when we cloned before, we did a full drive clone, now when restoring the data, we clone back only the partition overwriting our brand new Windows 10 install.

    Leave the copy process to finish and reboot, that should be it.

    HOWEVER… it might not. , you might need running after this the Windows rescue mode and follow the standard boot rescue procedures based on Windows rescue mode. If Windows install is not damaged beyond repair, you will possibly succeed trying those.

    Now that you know how to do backups from your booting hard drive, do them regularly and you won’t find yourself in this mess again :)

    Reply

  38. mike soule

    hi, i have a problem with my dell inspiron.

    i was in the inside the laptop and I saw what looked like batteries in the case.
    not smart enough to stay ou tof places I don’t belong I endtered the BIOS area and overwrote the numbers in thatcase thinking i could exit without changing anything permanently. I WAS WRONG ON ALL COUNTS.
    the first and all subsequent attempts, the box starts to boot.
    before I can do anything it stops and prompts for the administrat password ar just theh regular password it just sits and gets hot. then after 3 attempts to provide the passwords it closes down screen to black.

    Reply

    • jim

      usually there is a jumper on MB you can trigger to reset the passwork deleting it. check MB info… the jumper may not have a pin but if you can borrow it from elsewhere then put it back, it should clear your password. i have had to do this in past on several systems because of a very simular problem. Hope this helps.

      Reply

  39. David Poole

    Some of Andre comments just don’t work. As an example, in:
    Type each command then hit :

    bcdedit /export C:\BCD_Backup
    c:
    cd boot
    attrib bcd -s -h -r
    ren c:\boot\bcd bcd.old
    bootrec /RebuildBcd

    cd boot doesn’t work
    it cannot find a “boot” folder.
    Equally, bcdedit /export C:\BCD_Backup did not work.

    Reply

  40. Yong mick

    I have problems with the start up and no operating system on my desktop and how do i do a recovery as it show a dark screen and no operation on my desktop as i couldn’t see any start up.

    Can I use Command Prompt to repair Windows 10?

    Repair Windows 10 Using CMD [with SFC Command] SFC is a System File Checker, and you can use this command to scan for and restore corrupted system files on Windows 11/10. After you run the Command Prompt, it is not difficult to repair Windows 10 using Command Prompt with the SFC command.

    How do I fix my computer using Command Prompt?

    In Windows 10/11, click Start > Settings > Update & Security > Recovery > Advanced startup and then Restart now to boot into recovery environment. And then, click Troubleshoot > Advanced options > Command Prompt or directly press Shift + F10 to summon it.

    How do I repair corrupted Windows 10?

    Use the System File Checker tool to repair missing or corrupted system files.
    Open an elevated command prompt. ... .
    If you are running Windows 10, Windows 8.1 or Windows 8, first run the inbox Deployment Image Servicing and Management (DISM) tool prior to running the System File Checker..

    How do I force automatic repair on Windows 10?

    In the command prompt window, type “chkdsk /r c:” and hit Enter. This command will check your drive for errors using the CHKDSK utility and automatically repair them if possible. Type “sfc /scannow” and hit Enter. This will check the integrity of Windows system files using the System File Checker tool.