On Windows 10, I run
dism /online /import-defaultappassociations:\\path\to\appassociations.xml
The output says the command was completed successfully, but the defaults aren't changed when opening files. The changes are also not visible in Control Panel > Default Programs
.
I know the xml is accessible and this command worked on 8.1 computers in our environment. But every Windows 10 computer has had the same issue.
The DISM logs show some warnings, but I cannot really tell if they are related. I can provide them if necessary.
First of all this should probably be on serverfault or superuser since its a systems related (script/batch) question, not really programming (I know they overlap).
dism /import only works for new users on a PC. The GPO I believe works for existing users:
I'm currently fighting with the pros & cons of each as noted above.
Also be aware tweaking the appassoc.xml to only include the entries you WANT to change may cause multiple 'an app default was reset' messages for new users (using dism /import or GPO). At the time this appears to be a glitch or unintended side-effect with build 10586 or kb3135173 because of how app associations changed & need unique hashes