How to repair Windows x (and 11) in iv steps

When Windows 10 gets wonky, try this series of repair techniques — in this society — to attempt to ready things right.

mechanic wrench fix engine repair
Thinkstock
Table of Contents

Show More

Sometimes a Windows 10 system starts misbehaving to the betoken where repair is needed. This frequently takes the form of worsening operation or stability, and can originate from harm to, loss of, or corruption of Windows organisation files typically found in theC:\Windows folder hierarchy. When that happens, users would be well advised to interruption out the following routine to help them gear up things back to rights.

I initially wrote this story in 2022, just equally Windows x has evolved over time, some of the steps have inverse a bit. I've now updated it for the latest versions of Windows ten. That said, about of these approaches as well work with Windows 7 and 8 (with slight variations), and the advice here applies virtually identically to Windows 11, which Microsoft is gradually rolling out to Windows ten users whose hardware can support the new Os via Windows Update from October 2022 into early on 2022.

The Windows 10 (or 11) repair drill

The idea is to commencement try the initial step in the sequence. If that doesn't set what'southward cleaved, accelerate to the next step. Keep working through the steps in order until yous reach the end, and you are bound to set up the vast bulk of problems. (The only remaining step at that point would be to replace the system on which the software is running, and that's outside the scope of this story.)

The amount of time and attempt required for each step goes up incrementally. Some steps involve additional work to restore the prior country of your PC more or less back to where it was prior to taking that stride. Thus, the nigh important flake of advice I can dispense for those who must venture beyond Step 1 is this: Make a complete backup of your organisation to provide a source for files and information that might otherwise go missing. Ignore this communication at your own hazard.

Step 1: Using DISM and SFC for arrangement repair

Since I wrote the original version of this story, I've obtained direct advice from Microsoft that it's best to run DISM before running the System File Checker, a.yard.a. SFC. Hence, I am reversing the lodge of events for this step. I'll repeat Microsoft and say "E'er run DISM first, then SFC second, not vice versa."

DISM is the Deployment Epitome Servicing and Management tool. It's a kind of Swiss Army knife for working with Windows operating system images, both offline and online. DISM can often fix things that SFC tin detect simply that it cannot itself prepare. DISM supports a raft of capabilities with switches and parameters to match, but basic system file repair syntax is reasonably easy (though information technology ofttimes requires multiple passes before it tin set things direct).

You must run DISM in an Ambassador: Command Prompt window (press the Windows primal + X combination and select Control Prompt (Admin) from the resulting pop-upwards bill of fare) or in an Administrative PowerShell or Windows Concluding session. Here's some sample syntax (consult the TechNet DISM Technical Reference for all the gory details):

dism /online /cleanup-image /checkhealth

Near of the time when you run this command, the output volition find zip amiss, as shown in Figure 1:

win10 repair 01 dism checkhealth IDG

Effigy i: DISM can bank check the wellness of any Windows image. Hither, it reports all is well on a production PC.

The /checkhealth command simply checks the running image (that'south what /online tells it to do) to see if information technology can detect any damage or corruption. Because information technology'southward only checking file hashes and signatures, this control completes in under one infinitesimal on most machines. The good thing almost /checkhealth is that it non only tells you lot if information technology finds damage but if that damage is repairable or non-repairable. If it's repairable, you can continue to the /restorehealth pick (covered in the following paragraphs); if it's not-repairable, leap to Step two.

If DISM reports that component store corruption is found and is repairable, you should effort repairs. That syntax reads:

dism /online /cleanup-prototype /restorehealth

Even if errors were detected in the preceding step, this command should complete successfully. It replaces corrupt or questionable elements in the Windows Side-past-Side (WinSxS) store, reading from a local re-create of your Windows epitome files.

The/restorehealth command can be tricky to use. Because it can actually repair a Windows image, it needs a source from which to try such repairs. You lot can omit the/source option, but if you practice, the command will try to grab its files from Windows Update over the net. This may or may not piece of work, depending on firewall settings on your network.

A safer bet is to point DISM at a known good source for Windows image components on the local auto (or on your local network). This can be a Windows prototype (.wim) file or a compressed Windows paradigm (.esd, which is used for electronic software downloads of Windows installations, as the file extension is meant to communicate). You lot can also point to a dissever copy of aWinSXS binder (the usual directory path is C:\Windows\WinSXS) taken from another PC with similar or identical hardware for whichdism ... /checkhealth returns a clean bill of health.

The syntax for epitome files is where things can go interesting. To signal to theinstall.wim file that shows up in ISO downloads for the Windows ten installer on a USB wink drive designatedL:, for example, you must use the following source specification (which uses the first image it finds inside the .wim file, designated :1):

/source:WIM:L:\sources\install.wim:1

To utilize an ESD file, change the wim items to esd, equally shown here:

/source:ESD:L:\sources\install.esd:1

If you come across difficulties getting this to work, endeavour adding the/limitaccess switch to your command strings. This stops DISM from attempting to catch source files from Windows Update, which it will sometimes do fifty-fifty if pointed at a local source. If yous simply can't get either of these to work, try aWinSXS binder instead.

Note: the version and language for the/source image must be identical to that for the image to be repaired. This may mean using HeiDoc.internet, UUP Dump, or Microsoft's Media Cosmos Tool to catch the correct Windows ten or 11 version/build (see my article "The best places to observe Windows 10 ISOs" for details on how to apply these sources) and creating media or mounting the ISO file to give DISM the right/source from which to work. For Windows 11, check the Windows Insider Preview Downloads page to grab the proper ISO.

Figure 2 shows typical DISM output using /restorehealth:

win10 repair 02 dism restorehealth IDG

Figure 2: Fifty-fifty when DISM /checkhealth finds errors, the /restorehealth option is usually successful. (Click epitome to enlarge it.)

Side by side, it's time to run SFC, Microsoft's System File Checker. To quote TechNet, the organisation file checker "scans and verifies versions of all protected system files." It can tell yous if it finds anything amiss if you enter SFC /scannow at the command line.

As with DISM, you must run SFC from an Administrator: Command Prompt or an Authoritative PowerShell or Windows Terminal session. This command takes 5 to ten minutes to complete, depending on your PC hardware. Different DISM, SFC scans and initiates repairs inside a unmarried command.

Figure iii shows sample output when SFC finds files in need of repair. If this occurs on your PC, repeat the /scannow command until it gives the clear bill of health shown in Figure 4.

win10 repair 03 sfc scannow corrupt IDG

Effigy 3: If SFC finds questionable files, it volition repair them if it can. Hither, it succeeds. (Click image to enlarge information technology.)

win10 repair 04 sfc scannow clear IDG

Figure iv: Eventually, SFC will report finding no "integrity violations." Yous're washed! (Click epitome to enlarge it.)

In my feel, eighty% of all problems volition exist solved at this bespeak, and then the odds are in your favor that you won't have to keep going. Only if DISM tin't prepare your Windows image, or SFC can't or won't make repairs to your system files, proceed to Stride 2.

Stride two: Attempt a contempo restore signal or image backup

A restore point is a snapshot of a Windows PC's OS state from a specific point in fourth dimension. If enabled, the Windows System Restore adequacy tin create and maintain restore points on your behalf. To see if this is an selection on your target machine, type restore indicate into the Windows x search box. The System Properties window should open to the System Protection tab, shown in Figure five.

win10 repair 05 system restore IDG

Figure five: Access available restore points using the "System Restore…" push button.

To expect at restore points, y'all must work through the System Restore sorcerer. Click the System Restore... button to launch the wizard, and then click the Adjacent push button on the beginning pane of the wizard to come across a list of restore points available to you. (If yous don't like what y'all come across, or y'all don't run across something from before your troubles started on this machine, click the Show more restore points checkbox for a consummate list of what's available to you.) Click the restore indicate to which you would similar to revert.

Figure half-dozen shows the lonely restore point available on my test PC.

win10 repair 06 restore point item IDG

Figure 6: For this story, I created a restore point named "Exam restore point."

Considering I have only ane restore betoken — I don't use them much any more, for reasons I'll explicate coming upwards — I picked that item to show you lot what appears when you select a restore point in this utility. If you click the Scan for affected programs button it will tell you if any programs or drivers will exist affected by rolling back to the restore point you've selected. In this case, there'due south no impact, every bit shown in Figure 7. If something were to be affected, it would show up in either the summit or bottom list in that results pane.

win10 repair 07 restore programs drivers IDG

Figure 7: The current restore point has no affect. Merely older restore points will provide a list of drivers and programs that demand to be reinstalled if you revert to that restore point.

It usually takes between 5 and xv minutes to revert to a restore point. The amount of additional effort to catch back up to where y'all left off depends on the number of items that need to exist installed or updated, equally shown in Effigy seven. This can take from minutes to an 60 minutes or more than depending on size and scope.

All this said, I don't use Restore Points anymore. I've run into occasional bug with failed restores, and I've seen plenty of word in Microsoft Community and TenForums among other users who've had similar problems. My preference is to restore an image congenital using Macrium Reflect (free or commercial; I use both). It's faster than System Restore, and I've never been unable to restore a valid, integrity-checked Reflect fill-in. You decide what's best for you; I use Reflect.

Restoring an image fill-in is much similar reverting to a restore point: choose the image (normally by date and time) to which you lot'd like to roll back, then initiate the restore procedure. For example, Macrium Reflect offers a "Restore" menu, then allows you to browse stored fill-in files to selection the one you want in an Explorer-based Open window.

If reverting to a restore point or paradigm backup doesn't work (or you don't have either of these), information technology's time to move on to Step 3.