/build/static/layout/Breadcrumb_cap_w.png

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)

Posted by: Nioky 3 years ago
Yellow Belt
0

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!



 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ