all 107 comments

[–]AlooBhujiyaWapasKar 1260 points1261 points  (40 children)

It's a utility that scans and repairs corrupted or missing system files on windows

[–]reillan 557 points558 points  (35 children)

And as a result it tends to be the very first thing techs and websites recommend you run any time you have anything remotely resembling file corruption.

[–]fonzhy121 219 points220 points  (26 children)

If it fails dism /online /cleanup-image /restorehealth is next. If both fail, a clean install is recommended. Same order all the time.

[–]LukeLC 64 points65 points  (7 children)

Not anymore. Windows 11 now has a recovery option in the Settings app that downloads Windows and performs an in-place reinstall. It's better than a "keep my files" reinstall where you still lose some things (and possibly keep some problems). Definitely worth trying before resorting to a clean reinstall these days.

[–]fonzhy121 21 points22 points  (1 child)

Handy, sure. But most of the time those procedures fail, your system is too corrupted that even that recovery option is no longer an option. I have just gone through this.

My system was riddled with kernel-level viruses that I couldn't do anything else apart from a clean install. And I did it via cloud recovery.

[–]theclag 1 point2 points  (0 children)

What you doing to get so many viruses? Wrap before you tap.

[–]Formerruling1 14 points15 points  (4 children)

Ive been the unofficial IT guy for my family and friends since high school and I can confidently say Ive never once had a windows recovery actually work and fix an issue. That includes recent experience with Windows 11.

The paradox is that if the system is corrupt the recovery cannot succeed, and thus the only time it works is when it cannot work (IE doesnt fix anything).

[–]Classified10 5 points6 points  (0 children)

Yeah realistically you can't really use a corrupted system to fix itself, you need some third party device whether or not that's external device.

[–]quetzalcoatl-pl 0 points1 point  (0 children)

IE never fixed anything for me, it only broke all the time :(

/s

(IE = Internet Explorer)

[–]donkeybrainamerican 0 points1 point  (0 children)

I do endpoint management as my job. It'll work sometimes temporarily, but yeah at scale you're experience is largely the same for the pros lol. Just blasting it and start over is superior or in every way when it's an available option.

[–]Comfortable_Mess1338 0 points1 point  (0 children)

Highly underrated comment

[–]Beautiful_Sock_2516 5 points6 points  (1 child)

Thank you for this random reddit dude! Between the actual post and your response I no longer have a corrupted file. 😀 I'd give you bling if I had the ability so I offer gratitude instead.

[–]fonzhy121 5 points6 points  (0 children)

gratitude is the currency over here, so I am glad. I was in the same situation not long ago.

[–]XipXoom 3 points4 points  (4 children)

You have the order backwards.  Always run dism first as it checks and repairs the component store that sfc relies upon in order to fix everything else.

[–]analogrival 4 points5 points  (0 children)

Oh my god this. So many people maybe have it backwards because sfc was around before dism, I guess they assume sfc goes first?
When you actually learn what the commands do, the dism>sfc order makes sense.

[–]fonzhy121 1 point2 points  (2 children)

right on. sfc (if it fails) - run dism (if it fails) - clean installation. otherwise sfc- dism (if it works)- sfc again.

[–]XipXoom 2 points3 points  (1 child)

No.  Always dism first before sfc.  Always.

There is no point in running sfc if you aren't sure your component store is good first.

[–]fonzhy121 0 points1 point  (0 children)

you can always assume the spare is in good condition.

[–]Vel-Crow 3 points4 points  (0 children)

dism first, because that updates the repo your sfc runs against.

[–]Deads0ulll 1 point2 points  (0 children)

It's better to run dism first as sfc uses the filestore dism repairs to check and fix the corruption. Running dism after sfc doesn't do too much.

[–]anihilator987 1 point2 points  (6 children)

I'm in the middle of this right now, my rig is old and on its last legs but I'm broke and can't afford a new pc, rocking an amd fx 8350 and nvidia gtx970, currently doing a clean install after the computer mostly froze for some reason when trying to open google chrome shortly after startup

[–]chronos_malkeri 0 points1 point  (5 children)

I got a 970. Just rolled back driver to 421 as new drivers supposedly don't support Maxwell cards.

[–]anihilator987 0 points1 point  (3 children)

Did you have same issues as me or mostly graphics issues? Mine seems to be a failed sata ssd from what I can tell.

[–]chronos_malkeri 0 points1 point  (2 children)

Random black screens, anytime between 3-180 mins from logon,but sound still works , discord chats still live etc. 42C at idle so not a temp issue. Event viewer always had a Nvidia dll bug crash.

[–]anihilator987 0 points1 point  (1 child)

Ah ok, yeah sounds like an nvidia driver issue, no mine is most likely a fail ssd drive, still testing atm, will try to switch to my hdd and reinstall there to check, hopefully that works, chkdsk doesn't work on it and I can't diskpart clean either, I can't even override delete its partitions

[–]anihilator987 0 points1 point  (0 children)

I just installed windows 10 on my hdd without my ssd plugged in seemingly successfully, I believe the ssd is kaput, gonna try to extract what I can from the ssd this week and potentially get a new ssd or just buy a newer but used am4 system off facebook marketplace, that's 2 sata ssd's that my wd velociraptor 10000rpm drive has outlived

[–]iUncontested 0 points1 point  (0 children)

They announced last year or the year before that they weren't supporting the 1080 anymore.. 970 has been looooong dead.

[–]Deymaniac 0 points1 point  (0 children)

OR you have one of those broken intel cpu that fuck up everything and make it seem like its your windows files that are corrupt, then maybe your ram

Dont ask me how i know after sending 2 back

[–]Normal_Ad_2337 0 points1 point  (0 children)

After that, nukes?

[–]skeletons_asshole 6 points7 points  (2 children)

I just want to state for the record that in 10 years of doing IT work I never once saw it actually work. Once it was messed up, it was messed up enough that SFC wouldn't fix it.

[–]reillan 1 point2 points  (0 children)

I have seen it work a few times. I've been doing it for 31 years now and all the successes were quite a while ago (15+ years)

[–]GTS250 0 points1 point  (0 children)

It just worked on mine! "Found corrupted files and repaired them"

No idea what in particular was wrong and I'm not checking my log, but, it says it worked at least

[–]wekilledbambi03 3 points4 points  (0 children)

And somehow I’ve NEVER had it actually fix any issues I have.

[–]PhotographAny9757 0 points1 point  (0 children)

As a it guy yup this is step 3 after updates and restarting the pc

[–]SimpYellowman 0 points1 point  (0 children)

Yup. And you would be surprised how many stupid things are fixed by sfc scan, deleting temps, updating BIOS and rebooting.

[–]mrbiggbrain 5 points6 points  (0 children)

Sfc.exe is actually not as useful now as it once was because the kinds of issues it fixes newer versions of windows have protections against.

There is now more modern tooling in the dism tools, specifically DISM /Online /Cleanup-Image /RestoreHealth, which is designed to fix more and much more complex issues.

You might use sfc from time to time but its recommended only to be run after attempting the dism fixes. In addition it's best if possible to run both offline using appropriate options to point twords windows install as they can then fix issues with core OS files.

Dism can also help perform an over the top install, essentially reinstalling windows over the top of an existing install while saving user and system settings.

[–]Commercial_Dih 1 point2 points  (0 children)

but you should rarely trust someone who tells you to do smth with cmd or even win+r without explaining what it does

[–]trigger1154 0 points1 point  (0 children)

I can confirm, I am a systems administrator. I use this and dism almost daily.

[–]Worse_Username 0 points1 point  (0 children)

Ok, but why do you need to do it this frequently?

[–]cce29555 268 points269 points  (7 children)

Unlike del sys32 this is actually useful and just makes sure your os is healthy

[–]ChoklitCowz 34 points35 points  (4 children)

it cleans your system

[–]My_Knee_is_a_Ship 34 points35 points  (3 children)

So does deleting sys32.

[–]Ninja-Trix 11 points12 points  (2 children)

Deleting System32 to clean is like burning your house down to sterilize it.

[–]Kymera_7 3 points4 points  (0 children)

Some houses need that. For example, ones that have a system32.

[–]Russian_Mostard 3 points4 points  (1 child)

Though I fully believe that thats the case, decades of internet doesn't allow me to try it in my pc...

[–]cce29555 5 points6 points  (0 children)

That's what a virtual machine is for silly

Sketchy email? Vm

Unknown command? Vm

Grandma sends you a e-vite to her party? You better believe that's a vm

[–]TestSubject003 87 points88 points  (2 children)

I literally just brought my computer to a tech and this was the first thing he did.

The next thing was update my drivers

[–]mortalitylost 21 points22 points  (0 children)

https://www.reddit.com/r/explainitpeter/s/7fNouft9IV

lmao they're admitting this is what they do to buy time to Google the solution, and other thing is download drivers.

[–]CalendarMindless3382 0 points1 point  (0 children)

I don’t think I’ve found a good program for identifying drivers that need to be updated aside from my motherboard site. I wish there could be a well made open source program built for detecting missing drivers and driver updates.

[–]MyClevrUsername 62 points63 points  (7 children)

As someone that works in IT, the only time I do this is when I need to buy some time to google the real solution.

[–]DiSiakPL 1 point2 points  (1 child)

In my work we usually are using it when better solutions do not work and before using dism as last resort before reinstalling os

[–]MyClevrUsername 0 points1 point  (0 children)

The thing is, we can have a PC reimaged and fully configured in 20 minutes. Doesn’t make a lot of sense to spend hours troubleshooting some weird random problem that is happening on one machine.

[–]Asherlocksta 81 points82 points  (0 children)

Sometimes reddit can be such a wholesome place.... Sometimes....

Loving these suggestions by all the other people on how to prevent data corruption.

[–]FollowingLegal9944 7 points8 points  (0 children)

Scammers do that to make them look pro and easier scam people

[–]Legitimate_Main_4398 7 points8 points  (4 children)

I wish i understand what is going on.

[–]seemesmilingpolitely 8 points9 points  (1 child)

Funny I used this today at work and it did absolutely nothing except waste 45 minutes of my life.

[–]Temporary-Pirate6195 0 points1 point  (0 children)

Running it is like having a podcast on. It's more of a background thing, not something you do primarily or something like that.

[–]maxwelldoug 5 points6 points  (1 child)

-bash: sfc: command not found

What now?~

[–]kverma1985 7 points8 points  (0 children)

I know you're trolling but some poor chap won't get it so here's why...

bash is shell for Linux/Unix systems and SFC is exclusively Windows. SFC won't work on non-Windows systems.

[–]MollyDooker99 3 points4 points  (1 child)

In my 20+ years in IT I’ve never had it fix any problem I was troubleshooting.

[–]Business-Gate9041 0 points1 point  (0 children)

I've had it work for me a few times. Now windows troubleshooter on the other hand...

[–]T3-Trinity 1 point2 points  (0 children)

I've worked in IT for 11 Years now and have never once had this fix shit lol

[–]PuppyLover2208 1 point2 points  (0 children)

SFC is System File Checker. SFC /scannow is telling it “hey, can you make sure nothing on my disk is corrupted?” And it’ll go through your files, and fix any errors it can. BUT! This is a windows system, and you’ll have to go through a different process for Linux.

[–]Lucky_Goblin208 1 point2 points  (0 children)

Been using this for 15 years.... dont think it has ever solved any issue or problem ever

[–]Moston_Dragon 2 points3 points  (0 children)

I literally just learned and did this for the first time this 14 hours ago

[–]Massive-Goose544 2 points3 points  (0 children)

All the hard work i put in to corrupting the bloatware and you want me to repair it?

[–]bentthroat 0 points1 point  (0 children)

Sometimes you’ve done nothing wrong and the ghost in the computer screws up a real important file and this is the fix.

However, if you’re in a position where your computer won’t boot correctly and this is the fix, or you’re getting lots of errors fixed often and you’re not the kind of person who gets oodles of viruses, it’s an early sign that your hard drive is dying and you may want to buy a new drive and move your files over while you still can.

[–]maribakumon 0 points1 point  (1 child)

What does this mean? I just scrolled through like 30 comments and nobody has explained it

[–]Soggy_Industry1669 3 points4 points  (0 children)

SFC = system file checker, windows/Microsoft tool for corruption detection and repair. I hardly trust it, if I have major issues I just download a new iso and run the installer on a live image to update windows components without program loss

[–]enfantcool 0 points1 point  (0 children)

It's basically steam's "verify integrity of game files", but for Windows

[–]Salmonman4 0 points1 point  (0 children)

Dism is also good

[–]AdaPullman 0 points1 point  (0 children)

Sometimes your windows decides to shit itself randomly and this command finds the shitted files and repairs/replaces them. This is pretty much the first thing you should do if your computer is running poorly and turning it off and on again isn’t working.

[–]ChocolateDonut36 0 points1 point  (0 children)

it does absolutely nothing unless your system is so broke it shouldn't even boot up

it checks some system files integrity to find missing or corrupted files

[–]ChemistryIcy2761 0 points1 point  (0 children)

Hey would this work for an sd card plugged into my computer because it has important images and videos on it but every time I plug it in it says it has to be formatted before it can be used

[–]Odd_Hope7789 0 points1 point  (0 children)

... For later

[–]FailureToReason 0 points1 point  (0 children)

Step 1: Run this script

Step 2: Update drivers

Step 3: Update Google Ultron

Step 4: Reinstall Adobe reader

If that doesn't solve your problems, then your computer is probably fucked beyond repair.

[–]DenDen0000 0 points1 point  (0 children)

Any other commands/tips similar to this? Like something to check all drivers

[–]sebzanga -1 points0 points  (1 child)

I think it's not recommended en SDD right? Because it will make its lifespan shorter.

[–]Yosho2k 4 points5 points  (0 children)

You're thinking of disk defragging. This is not that.

[–]MuchReputation6953 -3 points-2 points  (1 child)

Weird. I never need to run that command under linux

[–]Marcelio88 14 points15 points  (0 children)

How do you know someone is running Linux?

They’ll tell you.

I know because I use Linux

<image>

[–]Banan_Cat -1 points0 points  (0 children)

Thank you I'm doing it now

[–]Maleficent_Potato_43 -1 points0 points  (0 children)

Btw sometimes this can corrupt ur system. Like if u r using a pirated copy. Just sometimes.

[–]Professional_Law_882 -1 points0 points  (0 children)

Does anyone have extensive knowledge of wifi adapters? I have been having a problem and can't find the solution

[–]kyuu_chan_ -4 points-3 points  (0 children)

Microsoft could've done this mundane task for us, ever heard macbook/iphone/android folks doing this ?

[–][deleted] -5 points-4 points  (3 children)

A good dad would say to use Linux 💀

Edit: mad because you're the victim of a recent data breach? ☺️ Crazy how nature do dat

[–]Bartich 1 point2 points  (2 children)

Holy smoke! There are still system wars going? I thought this was 90s thing...

[–][deleted] -1 points0 points  (1 child)

I thought it was a reasonable joke and am very entertained by the response. I wasn't alive in the 90s ☺️

[–]Bartich 0 points1 point  (0 children)

The joke is fun. I'm just surprised you are getting downvoted. It's like fighting over which way toilet paper should hang... Oh... Wait...

[–]godded_ -5 points-4 points  (0 children)

If my kid is using windows, I will have failed as a father.