Use DISM to apply file associations to a KACE agent
I am trying to apply a file associations xml file using kace scripting (K1000)
I am trying it with dir = $(KACE_SYS_DIR), file =cmd.exe and parameters= dism.exe /Online /Import-DefaultAppAssociations:DefaultAssoc.xml
defaultassoc.xml is a dependency
Hoping someone might be able to point me to the correct use here. Thanks
Because DefaultAssoc.xml is a dependency, it won't be find in C:\Windows\System32 ($(KACE_SYS_DIR)).
I think you could try "dism.exe /Online /Import-DefaultAppAssociations:$(KACE_DEPENDENCY_DIR)\DefaultAssoc.xml" as parameter.
Let me know if it worked!