Use DISM to apply file associations to a KACE agent
Hi
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
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
Nioky
3 years ago
Hi,
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.
Article: KACE: Quick Reference To Scripts Variables (itninja.com)
Let me know if it worked!