@kalafina So that’s showing that the DISM command doesn’t like spaces, even when surrounded by quotation marks.
I’d suggest creating a simple .CMD file and running that. For example (untested):
@echo off
copy /y \\server\share\appassoc.xml C:\
dism.exe /online /import-defaultappassociations:C:\appassoc.xml
Obviously, replace \\server\share
with a path that is network-reachable from your client.
…
On the other hand, looking at your “Snapin Command read-only”, it looks like you have a syntax error anyways - the appassoc.xml
part should NOT have a space before it when including the path.
Another thing to try is instead of running the cmd.exe, run dism.exe for the Snapin Run With, Argument set to /online /import-defaultappassociations:
, and see what that produces?