Windows power user tips Show
When Windows 10 gets wonky, try this series of repair techniques — in this order — to attempt to set things right.
Table of Contents Show More Sometimes a Windows 10 system starts misbehaving to the point where repair is needed. This often takes the form of worsening performance or stability, and can originate from damage to, loss of, or corruption
of Windows system files typically found in the I initially wrote this story in 2016, but as Windows 10 has evolved over time, some of the steps have changed a bit. I’ve now updated it 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 almost identically to Windows 11, which Microsoft is gradually rolling out to Windows 10 users whose hardware can support the new OS via Windows Update from October 2021 into early 2022. The Windows 10 (or 11) repair drillThe idea is to first try the initial step in the sequence. If that doesn’t fix what’s broken, advance to the next step. Keep working through the steps in order until you reach the end, and you are bound to fix the vast majority 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 effort required for each step goes up incrementally. Some steps involve additional work to restore the prior state of your PC more or less back to where it was prior to taking that step. Thus, the most important bit of advice I can dispense for those who must venture beyond Step 1 is this: make a complete backup of your system to provide a source for files and information that might otherwise go missing. Ignore this advice at your own risk. Step 1: Using DISM and SFC for system repairSince 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.k.a. SFC. Hence, I am reversing the order of events for this step. I’ll echo Microsoft and say “Always run DISM first, then SFC second, not vice versa.” DISM is the Deployment Image 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 can detect but that it cannot itself fix. DISM supports a raft of capabilities with switches and parameters to match, but basic system file repair syntax is reasonably easy (though it often requires multiple passes before it can set things straight). You must run DISM in an Administrator: Command Prompt window (press the Windows key + X combination and select Command Prompt (Admin) from the resulting pop-up menu) or in an Administrative PowerShell or Windows Terminal session. Here’s some sample syntax (consult the TechNet DISM Technical Reference for all the gory details):
Most of the time when you run this command, the output will find nothing amiss, as shown in Figure 1: Figure 1: DISM can check the health of any Windows image. Here, it reports all is well on a production PC. The If DISM reports that component store corruption is found and is repairable, you should attempt repairs. That syntax reads:
Even if errors were detected in the preceding step, this command should complete successfully. It replaces corrupt or questionable elements in the Windows Side-by-Side (WinSxS) store, reading from a local copy of your Windows image files. The A safer bet is to point DISM at a known good source for Windows image components on the local
machine (or on your local network). This can be a Windows image ( The syntax for image
files is where things can get interesting. To point to the
To use an ESD file, change the wim items to esd, as shown here:
If you run into difficulties getting this
to work, try adding the Note: the version and language for the Figure 2 shows typical DISM output using Figure 2: Even when DISM Next, it’s time to run SFC, Microsoft’s System File Checker. To quote TechNet, the system file checker “scans and verifies versions of all protected system files.” It can tell you if
it finds anything amiss if you enter SFC As with DISM, you must run SFC from an Administrator: Command Prompt or an Administrative PowerShell or Windows Terminal session. This command takes 5 to 10 minutes to complete, depending on your PC hardware. Unlike DISM, SFC scans and initiates repairs within a single command. Figure 3 shows sample output when SFC finds files in need of repair. If this occurs on your PC, repeat the Figure 3: If SFC finds questionable files, it will repair them if it can. Here, it succeeds. (Click image to enlarge it.) Figure 4: 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 point, so the odds are in your favor that you won’t have to keep going. But if DISM can’t fix your Windows image, or SFC can’t or won’t make repairs to your system files, proceed to Step 2. Step 2: Try a recent restore point or image backupA restore point is a snapshot of a Windows PC’s OS state from a specific point in time. If enabled, the Windows System Restore capability can create and maintain restore points on your behalf. To see if this is an option on your target machine, type restore point into the Windows 10 search box. The System Properties window should open to the System Protection tab, shown in Figure 5. Figure 5: Access available restore points using the “System Restore…” button. To look at restore points, you must work through the System Restore wizard. Click the System Restore... button to launch the wizard, then click the Next button on the first pane of the wizard to see a list of restore points available to you. (If you don’t like what you see, or you don’t see something from before your troubles started on this machine, click the Show more restore points checkbox for a complete list of what’s available to you.) Click the restore point to which you would like to revert. Figure 6 shows the lone restore point available on my test PC. Figure 6: For this story, I created a restore point named “Test restore point.” Because I have only one restore point — I don’t use them much any more, for reasons I’ll explain coming up — I picked that item to show you 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 be affected by rolling back to the restore point you’ve selected. In this case, there’s no impact, as shown in Figure 7. If something were to be affected, it would show up in either the top or bottom list in that results pane. 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. It usually takes between 5 and 15 minutes to revert to a restore point. The amount of additional effort to catch back up to where you left off depends on the number of items that need to be installed or updated, as shown in Figure 7. This can take from minutes to an hour or more depending on size and scope. All this said, I don’t use Restore Points anymore. I’ve run into occasional issues with failed restores, and I’ve seen plenty of discussion in Microsoft Community and TenForums among other users who’ve had similar problems. My preference is to restore an image built 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 backup. You decide what’s best for you; I use Reflect. Restoring an image backup is much like reverting to a restore point: choose the image (usually by date and time) to which you’d like to roll back, then initiate the restore procedure. For example, Macrium Reflect offers a “Restore” menu, then allows you to browse stored backup files to pick the one you want in an Explorer-based Open window. If reverting to a restore point or image backup doesn’t work (or you don’t have either of these), it’s time to move on to Step 3. How do I repair Windows 10 with 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 Windows 10 without losing files?Click “Troubleshoot” once you enter WinRE mode. Click “Reset this PC” in the following screen, leading you to the reset system window. Select “Keep my files” and click “Next” then “Reset.” Click “Continue” when a popup appears and prompts you to continue reinstalling the Windows 10 operating system.
How do I fix Windows without losing anything?By using Repair Install, you can choose to install Windows 10 while keeping all personal files, apps and settings, keeping personal files only, or keeping nothing. By using Reset This PC, you can do a fresh install to reset Windows 10 and keep personal files, or remove everything.
|