Fix Windows 10 Without Losing Programs: Step-by-Step
In this article
Yes, you can repair Windows 10 and keep every installed program: run the built-in repair tools first (SFC and DISM), and if those fail, reinstall Windows in place using Microsoft's own Media Creation Tool with the "Keep personal files and apps" option. An in-place upgrade repairs the entire system folder and rebuilds Windows while leaving your desktop programs, Store apps, files and most settings untouched. It is the same repair Microsoft support walks people through, and it usually takes one to three hours.
What You'll Need
- A working internet connection and 8 GB or more of free disk space on C:
- A Microsoft account or local account with administrator rights
- The Windows 10 Media Creation Tool, downloaded free from Microsoft's official "Download Windows 10" page (only for the in-place repair)
- At least 40 percent battery if on a laptop, or keep it plugged in
- Optional but wise: a copy of important files on an external drive or cloud storage, just in case
Step-by-Step
- Back up anything irreplaceable. The repair is designed to keep everything, but a copy of documents, photos and browser bookmarks costs nothing to make. Sign out of any encryption software you use before starting.
- Run the quick repairs first. Right-click the Start button and choose Windows PowerShell (Admin) or Command Prompt (Admin). Type
sfc /scannowand press Enter. This scans and repairs corrupted system files. It takes 5 to 15 minutes; wait until it reports a result before closing the window. - Repair the component store. In the same window, run
DISM /Online /Cleanup-Image /RestoreHealth. This fixes the underlying files that SFC itself depends on, downloading clean copies from Windows Update if needed. It can take 20 minutes or more on slow connections. If Windows Update is broken, this step may fail, which is fine; move on. - Reboot and test. Restart the PC and check whether the original problem is gone. If SFC or DISM reported repairs and the issue is fixed, stop here; you are done. If problems remain, continue with the in-place upgrade.
- Check your Windows edition and activation. Press Windows key + I to open Settings, then go to Update & Security > Activation. The in-place upgrade installs the same edition it finds, so confirm Windows is activated and note whether you run Windows 10 Home or Pro. Note that menu labels can differ slightly by version.
- Download the Media Creation Tool from Microsoft's official "Download Windows 10" page on the PC you are repairing. Run it and accept the license terms.
- Choose upgrade this PC now. Select "Upgrade this PC now" and click Next. The tool downloads the current Windows 10 installation files, which is typically several gigabytes, then prepares the upgrade. Do not use the "Create installation media for another PC" option; that is for USB drives.
- Choose to keep everything. When asked "What do you want to keep?" select "Keep personal files and apps". This is the option that preserves your installed programs. If that option is greyed out, you likely started the setup from a bootable USB instead of from within Windows; run the tool from the desktop instead.
- Let it install. Click Install and leave the PC alone. It will restart several times and show percentage progress. Total time is commonly one to three hours depending on hardware. Do not turn off the power during this phase.
- Finish setup and verify. When the PC returns to the desktop, sign in, then check a few programs launch correctly and your files are present. Run Windows Update (Settings > Update & Security > Windows Update) to bring the repaired install fully current.
- Clean up afterwards. Windows keeps the previous installation in a Windows.old folder for about ten days, which lets you roll back. After you are confident everything works, run Disk Cleanup (search the Start menu for it), click "Clean up system files", and remove "Previous Windows installation(s)" to reclaim a large amount of disk space.
Common Mistakes
- Running setup from a bootable USB or DVD while choosing a custom install. A custom install that formats the drive deletes everything; only the in-place upgrade from within Windows offers the keep-everything option.
- Skipping the backup. The process is safe, but power loss mid-install or a failing drive can still cost you data.
- Picking "Keep personal files only" by mistake. That option removes all desktop programs; you want "Keep personal files and apps".
- Using a third-party "repair" tool or an unofficial Windows ISO from a random site. Only use Microsoft's own Media Creation Tool and official sources.
- Interrupting the install because it looks stuck at a percentage for a long time. Long pauses at 25 to 40 percent are normal; only a power cut is a real problem.
Tips
- Disconnect unnecessary USB peripherals (printers, external drives, dongles) before starting; they occasionally stall the installer.
- Temporarily disable or uninstall third-party antivirus before the upgrade, then reinstall it afterwards. Windows Defender takes over automatically in the meantime.
- If your PC is badly broken and will not boot at all, you can still do this: boot from Windows 10 installation media, choose "Repair your computer" > Troubleshoot > Command Prompt, and run SFC and DISM against the offline system. The in-place upgrade itself, however, requires Windows to at least reach the desktop.
- Sign out of iTunes, Adobe and similar license-limited software before major repairs, and know your license keys, just in case a program asks to reactivate afterwards.
- After the repair, some programs may ask to be signed in again; that is normal and does not mean they were removed.
Troubleshooting
Setup fails with an error code: Note the code, then run Windows Update manually first, since the upgrade uses the same delivery channel. Freeing disk space and unplugging peripherals fixes many failures. You can also delete the contents of C:\Windows\SoftwareDistribution\Download and retry.
The "Keep personal files and apps" option is greyed out: You are probably running setup from media booted outside Windows, or your current edition does not match the media. Launch Media Creation Tool from within the running Windows 10 desktop instead.
DISM fails or hangs: Check your internet connection, since RestoreHealth downloads replacement files. If it still fails, skip it; the in-place upgrade replaces those components anyway.
The PC is stuck on a black screen after the upgrade: Wait 30 minutes, then force a restart by holding the power button. Windows usually resumes the install. If it loops, boot from installation media, choose "Repair your computer" > Troubleshoot > Advanced options > Startup Repair.
Something is missing afterwards: Within about ten days you can roll back: Settings > Update & Security > Recovery > "Go back to the previous version of Windows 10". This returns you to the pre-repair state, problems and all, so use it only if the repair made things worse.
Frequently Asked Questions
Does an in-place upgrade really keep all my programs?
Yes, with the "Keep personal files and apps" option, desktop programs and Store apps stay installed. A few low-level utilities, antivirus suites and drivers may need reinstalling or updating afterwards.
Will I lose my files and settings?
No. Personal files, browser bookmarks and most settings survive. You will need to sign back into a few services, and some settings like power plans may reset to defaults.
How is this different from Reset this PC?
Reset (Settings > Update & Security > Recovery) reinstalls Windows from scratch; its "Keep my files" option still removes all programs. The in-place upgrade is the only repair that keeps programs, so use it when that matters.
How long does it take?
Usually one to three hours including the download, depending on your internet speed and disk speed. Budget half a day to be safe.
Do I need a product key?
Not normally. An activated Windows 10 install reactivates automatically after the repair. Have the key handy anyway if you are asked.
My PC will not boot at all. Can I still fix it without losing programs?
Partly. Boot from Windows 10 installation media and use "Repair your computer" > Troubleshoot for Startup Repair, System Restore, or offline SFC/DISM. If none of those work, the full in-place upgrade is not available from outside Windows, so back up your files from the recovery environment before any reset.