How to Stop Photos App from Resetting Image File Associations?

This post explains how to prevent the modern Photos app from taking over the defaults for all image files types. We saw how to prevent Edge from taking over the PDF and HTM association settings. The same method can be used for the Photos app, or for any other app for that matter.

When no file association (user choice) is set or if an application corrupts the UserChoice registry key while setting association, file association is automatically reset to Windows 10 defaults. For instance, Photos may takeover your image file associations after an update, or due to the above mentioned reasons and the Action Center notifies you that an app default was reset.

“An app caused a problem with the default app setting for .png, so it was reset to Photos”

2019 Update: The following registry edits no longer work in Windows v1809 (and higher). See article Fix “An App Default Was Reset” for a proper fix.

To stop Photos from hijacking the image file associations use these steps.

Start the Registry Editor (Regedit.exe) and go to:

HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.Windows.Photos_16.201.11370.0_x64__8wekyb3d8bbwe\App\Capabilities\FileAssociations

Note: The above key only applies if you have version Photos v16.201.11370.0_x64 installed, which is the current version as of this post. If you have any other version or build number, choose the appropriate key. It will be usually in this format:

Microsoft.Windows.Photos_nn.nnn.nnnnn.n_x64__8wekyb3d8bbwe, Where the nnn… is a placeholder for the actual version/build no. Also watch out for the “bit”ness.

In the right-pane, note down the Prog IDs assigned for an image file type, say .jpg. In this case, the Prog ID for .jpg is AppX43hnxtbyyps62jhe9sqpdzxn1790zetc

(The Prog Id in this case, is the same for other image file types as well, like .PNG, .JPE, .JPEG, .JPG, .ICO, .GIF, .JFIF etc.)

Go to the following location:


In the right-pane, create a string value (REG_SZ) named NoOpenWith

This prevents the Photos app from taking over the image files type associations.

Exit the Registry Editor.

Now use Default Programs or the Open With dialog to re-associate the file type with your preferred program. Note that this also hides Photos in the Open With dialog boxes for the corresponding file types. If an update removes the NoOpenWith value, or if the ProgID name changes, you’ll need to set the value again under the appropriate ProgID key.

Important: On Windows 11, the NoOpenWith registry value behaves differently and causes issues. For more information, check out the article Can’t Associate JPG/PNG Files via Default Apps in Windows 11

One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support, my reader. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded in 2005.

3 thoughts on “How to Stop Photos App from Resetting Image File Associations?”

  1. Mine already had the ‘NoOpenWith’ string value in there, and Photos still hijacks some of my photo associations … mainly just .jpg files as far as I can tell.

  2. Registry entry is already there. MSW still steals the file association. I guess the folks in Redmond are too ARROGANT to obey what their users tell them to do. Time to smack a few project heads with a clue-by-four. Or do a mass migration of all MSWin systems to Linux (which would probably have better results).


Leave a Comment