Windows 11: Default image app keeps reverting to “Microsoft WinRT Storage API” / Windows Photo Viewer w/ “Invalid value for registry” when opening images

Lashon Cortez 0 Reputation points
2026-01-19T16:21:33.24+00:00

Hi all,

I am a sysadmin supporting a small environment with over 500 users. We have only two users experiencing a recurring issue where image file associations will not “stick,” and images intermittently fail to open.

Problem Summary

  • User sets Microsoft Photos as the default app for image types (ex: .TIF, .JPG, possibly .PNG).
  • Within 24 hours, the default reverts back to Windows Photo Viewer or shows “Microsoft WinRT Storage API” as the default handler.
  • When opening images, the user sometimes gets: “Invalid value for registry”.
  • This occurs even after moving the user to a new Windows 11 desktop / Windows 11 upgrade (issue persists).

This appears user/profile-specific (only 2 affected out of 500), which makes me think the problem is tied to per-user file association settings or Photos app registration for those users.

Environment

  • Windows 11 Pro/Enterprise (exact build available if needed)
  • Domain environment (AD), but no GPO enforcing default apps org-wide (we don’t want to change defaults for 500 users)
  • Only 2 impacted users

What We’ve Tried

  1. Manually set defaults
    • Settings → Apps → Default apps → set Photos for .TIF/.JPG
      • Reverts after a day
  2. Repair/Reset Photos
    • Settings → Apps → Installed apps → Microsoft Photos → Advanced options → Repair/Reset
      • Issue returns
  3. Windows 11 upgrade / new Windows 11 computer
    • Upgraded/replaced the workstation to Windows 11
      • Issue persists for the user(s)
  4. Notes
    • We considered regedit, but we understand Windows protects per-user file association keys with a hash (UserChoice), so forcing defaults via registry is not reliable.

Questions / What I’m Looking For

  1. Why would Windows revert a default association to Microsoft WinRT Storage API?
  2. What’s the best supported way to repair the user’s file association state so Photos stays the default?
  3. Is there a known Windows 11 / Photos issue that causes “Invalid value for registry” and association reversion?
  4. Any recommended logs/locations to confirm what is resetting defaults (Event Viewer / AppX logs / registry keys)?

Data I Can Provide

  • Windows build number(s)
  • Event Viewer logs (AppXDeployment, AppModel-Runtime, Photos-related errors)
  • sfc /scannow results
  • DISM /Online /Cleanup-Image /RestoreHealth results
  • Get-AppxPackage Microsoft.Windows.Photos output
  • File association export and details of affected extensions

Any guidance would be appreciated. Especially supported steps to “reset” the affected user’s default app associations without impacting the entire domain.

Thanks!Hi all,

I am a sysadmin supporting a small environment with over 500 users. We have only two users experiencing a recurring issue where image file associations will not “stick,” and images intermittently fail to open.

Problem Summary

  • User sets Microsoft Photos as the default app for image types (ex: .TIF, .JPG, possibly .PNG).
  • Within 24 hours, the default reverts back to Windows Photo Viewer or shows “Microsoft WinRT Storage API” as the default handler.
  • When opening images, the user sometimes gets: “Invalid value for registry”.
  • This occurs even after moving the user to a new Windows 11 desktop / Windows 11 upgrade (issue persists).

This appears user/profile-specific (only 2 affected out of 500), which makes me think the problem is tied to per-user file association settings or Photos app registration for those users.

Environment

  • Windows 11 Pro/Enterprise (exact build available if needed)
  • Domain environment (AD), but no GPO enforcing default apps org-wide (we don’t want to change defaults for 500 users)
  • Only 2 impacted users

What We’ve Tried

  1. Manually set defaults
    • Settings → Apps → Default apps → set Photos for .TIF/.JPG
      • Reverts after a day
  2. Repair/Reset Photos
    • Settings → Apps → Installed apps → Microsoft Photos → Advanced options → Repair/Reset
      • Issue returns
  3. Windows 11 upgrade / new Windows 11 computer
    • Upgraded/replaced the workstation to Windows 11
      • Issue persists for the user(s)
  4. Notes
    • We considered regedit, but we understand Windows protects per-user file association keys with a hash (UserChoice), so forcing defaults via registry is not reliable.

Questions / What I’m Looking For

  1. Why would Windows revert a default association to Microsoft WinRT Storage API?
  2. What’s the best supported way to repair the user’s file association state so Photos stays the default?
  3. Is there a known Windows 11 / Photos issue that causes “Invalid value for registry” and association reversion?
  4. Any recommended logs/locations to confirm what is resetting defaults (Event Viewer / AppX logs / registry keys)?

Data I Can Provide

  • Windows build number(s)
  • Event Viewer logs (AppXDeployment, AppModel-Runtime, Photos-related errors)
  • sfc /scannow results
  • DISM /Online /Cleanup-Image /RestoreHealth results
  • Get-AppxPackage Microsoft.Windows.Photos output
  • File association export and details of affected extensions

Any guidance would be appreciated. Especially supported steps to “reset” the affected user’s default app associations without impacting the entire domain.

Thanks!

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Jason Nguyen Tran 9,725 Reputation points Independent Advisor
    2026-01-19T17:04:07.5133333+00:00

    Hi Lashon Cortez,

    The behavior you’re seeing, where file associations revert to “Microsoft WinRT Storage API” or Windows Photo Viewer and produce the “Invalid value for registry” error, is typically tied to corruption in the per‑user app registration state. Even after repairing or resetting the Photos app, the registry hash protecting file associations can remain invalid, which causes Windows to fall back to legacy handlers.

    The best supported way to repair this is to fully re‑register the Photos app for the affected users. You can do this by running PowerShell as administrator and executing: Get-AppxPackage *Microsoft.Windows.Photos* | Reset-AppxPackage This clears the corrupted registration and rebuilds the association state. If the issue persists, you may also export and re‑import default app associations using Dism /Online /Export-DefaultAppAssociations:assoc.xml and Dism /Online /Import-DefaultAppAssociations:assoc.xml, applied only to the impacted profiles.

    For deeper investigation, I recommend checking Event Viewer > Applications and Services Logs > Microsoft > Windows > AppXDeployment-Server and AppModel-Runtime, as these will record any failures when defaults are reset. If you see repeated errors tied to Photos, that confirms the app package is failing validation for those users.

    I hope this guidance helps you stabilize file associations for the affected accounts. If this explanation is useful, please hit “Accept Answer” so I know your concern is resolved. 😊

    Jason.

    0 comments No comments

  2. Jason Nguyen Tran 9,725 Reputation points Independent Advisor
    2026-01-21T06:12:05.02+00:00

    Hi Lashon Cortez,I hope everything is going well. Have you managed to fix the problem on your side or anythings else I can help with? If the solution worked for you, please consider selecting “Accept Answer” to help others find it more easily. Much appreciated!

    0 comments No comments

  3. Q&A Assist
    2026-01-19T16:21:53.5666667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The issue you're experiencing with default app associations reverting for specific users in Windows 11 could be due to several factors. Here are some insights and recommendations based on your description:

    1. Why would Windows revert a default association to Microsoft WinRT Storage API?
      This can happen if there are underlying issues with the user profile or if there are permission problems affecting the registry or file system. If the default app settings are not properly saved or if the Photos app is not correctly registered for those users, Windows may revert to a fallback option like the WinRT Storage API.
    2. Best supported way to repair the user’s file association state:
      • Recreate User Profile: Since the issue appears user-specific, consider creating a new user profile for the affected users. This can help eliminate any corruption in the current profile.
      • Export and Import Default App Associations: You can export the default app associations from a working profile and import them into the affected user's profile using DISM. This might help in resetting the associations correctly.
      • Check Permissions: Ensure that the affected users have the correct permissions on their registry keys and file system folders related to the Photos app. You can refer to the guidelines on checking and restoring permissions to ensure that the All Application Packages group has the necessary access.
    3. Known Windows 11 / Photos issue causing “Invalid value for registry”:
      There have been reports of issues related to registry permissions affecting app functionality. If the registry permissions for the Photos app or related keys have been altered, it could lead to the "Invalid value for registry" error. Ensure that the permissions are correctly set for the registry paths related to the Photos app.
    4. Recommended logs/locations to confirm what is resetting defaults:
      • Event Viewer: Check the Application and System logs for any errors or warnings related to the Photos app or file associations.
      • AppX Logs: Look for logs under AppXDeployment and AppModel-Runtime for any issues related to app installations or updates.
      • Registry Keys: Monitor changes to the relevant registry keys for file associations, particularly under HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations. You can use tools like Process Monitor to track changes to the registry in real-time.

    By following these steps, you may be able to identify the root cause of the issue and implement a solution that ensures the default app associations remain consistent for the affected users.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.