This is another Windows myth that no longer works...
DISM-based default file associations are
completely useless on most W10 and all W11 releases. User provisioning from UWP (Store) apps destroys anything you do, since it runs last and doesn't care about the system defaults.
Run DISM in Post-Setup, to capture file associations right after install:
Code:
Dism.exe /Online /Export-DefaultAppAssociations:"C:\Post-Setup-AppAssociations.xml"
Run DISM after you log on:
Code:
Dism.exe /Online /Export-DefaultAppAssociations:"C:\Post-Provisioning-AppAssociations.xml"
Compare them:
Code:
10/27/2022 09:29 PM 11,918 Post-Provisioning-AppAssociations.xml
10/27/2022 09:14 PM 2,338 Post-Setup-AppAssociations.xml
Appx packages cannot make profile changes until the first user gets provisioned (logs on).
If you change your file associations, it only applies to your AppDataLocal. None of it gets updated to DISM's copy, because UWP preferences are per-user and not global. Remember uninstalling UWP apps for yourself doesn't impact another local user who has the same app installed.
Therefore on any Windows with provisioned UWP apps, the default associations are basically ignored.
I have no idea why MS doesn't clean up their docs, to say "it stopped working in Windows 1607" (or whatever).