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

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

mechanic wrench fix engine repair
Thinkstock
Table of Contents

Bear witness More than

Sometimes a Windows ten system starts misbehaving to the point where repair is needed. This frequently takes the class of worsening performance or stability, and can originate from damage to, loss of, or corruption of Windows system files typically institute in theC:\Windows folder hierarchy. When that happens, users would be well advised to break out the following routine to assist them gear up things back to rights.

I initially wrote this story in 2016, but equally Windows 10 has evolved over time, some of the steps have changed a flake. I've now updated information technology for the latest versions of Windows 10. That said, most of these approaches also work with Windows 7 and 8 (with slight variations), and the advice here applies about identically to Windows eleven, which Microsoft is gradually rolling out to Windows ten users whose hardware can support the new OS via Windows Update from October 2021 into early 2022.

The Windows 10 (or eleven) repair drill

The idea is to first try the initial step in the sequence. If that doesn't fix what'southward broken, accelerate to the next footstep. Proceed working through the steps in club until you reach the end, and you are jump to set up the vast majority of problems. (The only remaining step at that point would exist to replace the system on which the software is running, and that'south outside the scope of this story.)

The amount of time and effort required for each step goes upwards incrementally. Some steps involve additional work to restore the prior state of your PC more or less back to where information technology was prior to taking that stride. Thus, the most of import bit of advice I can dispense for those who must venture beyond Step 1 is this: make a consummate fill-in of your arrangement to provide a source for files and data that might otherwise get missing. Ignore this advice at your ain risk.

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 earlier running the Organisation File Checker, a.k.a. SFC. Hence, I am reversing the order of events for this step. I'll repeat Microsoft and say "Always run DISM first, then SFC second, non vice versa."

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

You must run DISM in an Administrator: Control Prompt window (printing the Windows key + X combination and select Control Prompt (Admin) from the resulting pop-upwards menu) or in an Administrative PowerShell or Windows Concluding session. Hither's some sample syntax (consult the TechNet DISM Technical Reference for all the gory details):

dism /online /cleanup-paradigm /checkhealth

Most of the time when y'all run this command, the output will discover nothing awry, as shown in Figure 1:

win10 repair 01 dism checkhealth IDG

Figure 1: DISM can cheque the wellness of whatsoever Windows image. Here, it reports all is well on a production PC.

The /checkhealth command just checks the running image (that's what /online tells it to do) to run across if it can detect any damage or corruption. Considering it'south only checking file hashes and signatures, this command completes in under one minute on most machines. The good thing about /checkhealth is that it not but tells you if it finds damage but if that damage is repairable or non-repairable. If it's repairable, you tin proceed to the /restorehealth option (covered in the following paragraphs); if it'due south non-repairable, leap to Step ii.

If DISM reports that component shop corruption is found and is repairable, y'all should attempt repairs. That syntax reads:

dism /online /cleanup-epitome /restorehealth

Even if errors were detected in the preceding step, this command should complete successfully. It replaces decadent or questionable elements in the Windows Side-by-Side (WinSxS) store, reading from a local copy of your Windows image files.

The/restorehealth control tin be tricky to utilise. Because it tin can really repair a Windows image, information technology needs a source from which to attempt such repairs. You can omit the/source option, just if you lot do, the command will try to grab its files from Windows Update over the internet. This may or may not work, depending on firewall settings on your network.

A safer bet is to point DISM at a known practiced source for Windows image components on the local machine (or on your local network). This can exist a Windows image (.wim) file or a compressed Windows image (.esd, which is used for electronic software downloads of Windows installations, as the file extension is meant to communicate). You can too point to a separate re-create of aWinSXS folder (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 wellness.

The syntax for image files is where things can get interesting. To signal to theinstall.wim file that shows up in ISO downloads for the Windows 10 installer on a USB flash drive designatedL:, for example, you must use the post-obit source specification (which uses the first image information technology finds inside the .wim file, designated :i):

/source:WIM:Fifty:\sources\install.wim:one

To apply an ESD file, alter the wim items to esd, as shown here:

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

If you lot run across difficulties getting this to work, try adding the/limitaccess switch to your command strings. This stops DISM from attempting to grab source files from Windows Update, which it volition sometimes practice even if pointed at a local source. If you merely can't go either of these to work, try aWinSXS folder instead.

Note: the version and language for the/source prototype must be identical to that for the image to be repaired. This may mean using HeiDoc.cyberspace, UUP Dump, or Microsoft'south Media Creation Tool to catch the right Windows 10 or 11 version/build (come across my commodity "The best places to find Windows 10 ISOs" for details on how to utilise these sources) and creating media or mounting the ISO file to give DISM the right/source from which to work. For Windows xi, check the Windows Insider Preview Downloads page to grab the proper ISO.

Figure ii shows typical DISM output using /restorehealth:

win10 repair 02 dism restorehealth IDG

Figure 2: Even when DISM /checkhealth finds errors, the /restorehealth option is usually successful. (Click image to enlarge information technology.)

Next, it's time to run SFC, Microsoft'due south System File Checker. To quote TechNet, the system file checker "scans and verifies versions of all protected system files." It can tell you lot if information technology finds annihilation amiss if you enter SFC /scannow at the control line.

Equally with DISM, you must run SFC from an Ambassador: Control Prompt or an Authoritative PowerShell or Windows Final session. This command takes v to ten minutes to complete, depending on your PC hardware. Dissimilar DISM, SFC scans and initiates repairs within a single command.

Figure three shows sample output when SFC finds files in demand of repair. If this occurs on your PC, echo the /scannow control until information technology gives the clear bill of health shown in Figure 4.

win10 repair 03 sfc scannow corrupt IDG

Figure 3: If SFC finds questionable files, it will repair them if it tin. Hither, it succeeds. (Click image to enlarge it.)

win10 repair 04 sfc scannow clear IDG

Figure four: Eventually, SFC will report finding no "integrity violations." You're done! (Click image to enlarge it.)

In my experience, 80% of all problems will be solved at this indicate, so the odds are in your favor that yous won't have to continue going. But if DISM can't fix your Windows image, or SFC can't or won't make repairs to your system files, go along to Step 2.

Stride 2: Try a contempo restore signal or image backup

A restore point is a snapshot of a Windows PC'due south OS land from a specific point in time. If enabled, the Windows System Restore capability can create and maintain restore points on your behalf. To run into if this is an selection on your target car, type restore bespeak into the Windows 10 search box. The Arrangement Properties window should open to the Organization Protection tab, shown in Figure 5.

win10 repair 05 system restore IDG

Effigy 5: Access bachelor restore points using the "Organization Restore…" button.

To look at restore points, you must work through the Arrangement Restore sorcerer. Click the Organization Restore... button to launch the wizard, then click the Next button on the first pane of the wizard to run into a list of restore points available to you. (If you don't like what y'all see, or yous don't see something from before your troubles started on this machine, click the Evidence more restore points checkbox for a complete list of what's available to yous.) Click the restore signal to which y'all would like to revert.

Effigy 6 shows the lone restore indicate bachelor on my examination PC.

win10 repair 06 restore point item IDG

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

Considering I take simply one restore point — I don't utilize them much any more, for reasons I'll explain coming up — I picked that particular to show yous what appears when you select a restore signal in this utility. If you click the Scan for afflicted programs button it will tell y'all if any programs or drivers volition be afflicted by rolling back to the restore point you've selected. In this example, in that location's no impact, as shown in Figure vii. If something were to exist affected, it would show up in either the top or lesser list in that results pane.

win10 repair 07 restore programs drivers IDG

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

Information technology usually takes between five and 15 minutes to revert to a restore indicate. The corporeality of additional endeavor to catch support to where you left off depends on the number of items that need to be installed or updated, every bit shown in Effigy 7. This can have from minutes to an hr or more depending on size and scope.

All this said, I don't utilise Restore Points anymore. I've meet occasional issues with failed restores, and I've seen plenty of give-and-take in Microsoft Community and TenForums among other users who've had similar bug. My preference is to restore an image built using Macrium Reflect (gratis or commercial; I use both). It'southward 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 yous; I use Reflect.

Restoring an image fill-in is much like reverting to a restore point: choose the image (usually by date and fourth dimension) to which you'd like to whorl dorsum, then initiate the restore procedure. For example, Macrium Reflect offers a "Restore" carte, then allows y'all to scan stored backup files to pick the one you lot want in an Explorer-based Open window.

If reverting to a restore signal or image backup doesn't work (or yous don't have either of these), it's time to move on to Step 3.