If your Windows PC keeps opening files in the wrong apps, you can reset all default programs back to Microsoft’s built-in choices, or just fix one file type. This guide walks you through the built-in Settings method, the legacy Control Panel approach, and command-line options, plus how to back up your current associations first.
What “Default Programs” Means in Windows
When you double-click a file, Windows checks a list of associations that map file extensions (like .pdf, .jpg, .html) and protocols (like mailto, http) to specific apps. Over time, these associations can change—sometimes intentionally when you install new software, sometimes accidentally when a program hijacks them during installation. Resetting defaults returns those associations to the apps Microsoft ships with Windows, such as Microsoft Edge for web pages, Photos for images, and Notepad for text files.
How to Reset All Defaults in Windows Settings
- Open Settings (Win + I) and go to Apps > Default apps.
- Scroll to the bottom and click Reset under “Reset all default apps.”
- Confirm in the pop-up. Windows will restore all associations to its own defaults.
This is the quickest method, but it affects every file type and protocol, so you’ll lose any custom choices you made previously. You’ll need to re-set your preferred browser, email client, and media player after doing this.
Resetting a Single File Type or Protocol
If you only want to fix one problematic association, do this:
- Go to Settings > Apps > Default apps.
- Scroll down to the “Set defaults by file type” section, or search for the extension in the search box.
- Click the current app next to the extension, then choose a new one from the list. If the app isn’t listed, click “Look for an app in the Microsoft Store” or “Choose an app on your PC.”
You can also reset a single protocol (like MAILTO) the same way. This is safer than a full reset because it leaves all your other preferences untouched.
Using Control Panel (Legacy Method)
Windows 10 and 11 still include the classic Control Panel for managing defaults, though Microsoft is slowly phasing it out. To use it:
- Open Control Panel and go to Programs > Default Programs > Set your default programs.
- Select an app from the left list (e.g., Microsoft Edge).
- Click “Set this program as default” to assign all its supported file types, or click “Choose defaults for this program” to pick specific extensions.
This method gives you more granular control than the Settings reset, and it’s still fully supported in current versions.
Command-Line and PowerShell Options
For advanced users, there are two command-line tools:
- DISM (Deployment Imaging Service and Management): Run
dism /online /Remove-ProvisionedAppxPackagewith specific package names to remove default app associations, but this is more for system administrators. - PowerShell: You can use the
Get-AppxPackageandSet-AppxPackagecmdlets to re-register built-in apps, which often restores their default associations. For example, to re-register all built-in apps, runGet-AppxPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}in an elevated PowerShell window.
These methods are powerful but can have unintended side effects, so only use them if you’re comfortable troubleshooting.
Backing Up and Restoring File Associations
Before you reset anything, consider saving your current associations so you can restore them later. Windows doesn’t have a built-in export feature, but you can use the assoc and ftype commands in Command Prompt to view and modify associations. To back up:
- Open Command Prompt as administrator.
- Run
assoc > associations.txtto save all file type associations. - Run
ftype > ftypes.txtto save all file type commands.
To restore, run assoc and ftype with the saved files using a for loop, but this is clunky. A simpler approach is to use a third-party tool like NirSoft’s FileTypesMan, which allows exporting and importing associations in a few clicks. However, always download such tools from reputable sources.
Common Problems and Misconceptions
- “Reset” doesn’t clear your custom apps: The Settings reset only changes associations to Microsoft defaults; it doesn’t uninstall third-party apps.
- Some apps re-associate after reset: Certain programs (like Adobe Reader or Spotify) may prompt you to set them as default again on next launch. You can disable these prompts in the app’s settings.
- File type vs. protocol confusion: Resetting .pdf won’t change how mailto links open. You need to reset the protocol separately.
- Missing apps after reset: If you reset all defaults, your custom browser or media player won’t appear in the “Open with” list automatically. You’ll need to add them manually.
- Reset doesn’t fix corrupted associations: If the association is broken due to a corrupted registry, a simple reset may not work. In that case, you may need to repair your Windows installation or use a system restore point.
Frequently Asked Questions
Will resetting default apps delete my installed programs?
No. Resetting default apps only changes which program opens which file type. It does not uninstall or remove any software from your computer.
How do I set a specific app as default for all its file types?
Go to Settings > Apps > Default apps, click on the app you want, and then click “Set default” at the top. This will assign all file types and protocols that the app supports to that app.
Why does Windows keep asking me to choose a default app?
This usually happens when an app is installed but hasn’t registered itself as the default, or when an association is missing. You can set a default manually as described above, or the app may have a “Set as default” option in its own settings.
Can I reset defaults from the command line?
Yes, you can use the start ms-settings:defaultapps command to open the Default Apps settings page directly. For more advanced automation, you can use PowerShell scripts, but there is no single built-in command to reset all defaults at once.
What’s the difference between “Reset all default apps” and “Choose defaults by file type”?
The first resets every association to Microsoft’s defaults. The second lets you manually pick which app handles a specific file extension without affecting others.
Is there a way to reset defaults for only the current user?
Yes, the Settings and Control Panel methods only affect the current user profile. Other users on the same PC keep their own associations.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to Add Another Account on Telegram
- Ubuntu Printer Detected But Won’t Print: Fix
- Autoplay Not Working on Windows 11? Fix It
- Edit Messages on iPhone & View Edit History
- How to Clean Rust Off Chrome Dinette Legs
- How to Check Where an HP Laptop or PC Was Made