/build/static/layout/Breadcrumb_cap_w.png

Deploying default file type associations WITHOUT Group Policy? Defaultapps.xml

How can I deploy File Type Associations/Defaultapps.xml using SDA?

I see many guides on how to do this using Group Policy, but that would override end users being able to set their own associations. 

I tried loading my Defaultapps.xml as a post installation task and uploading the xml as the installer, and then using this command:

dism.exe /online /Import-DefaultAppAssociations:"%~dp0AppAssociations3.xml"


Installation fails on this command.  


Also tried saving the command as a cmd file and zipping that with the defaultapps.xml and uploading the zip file as the installer (this has worked for some other apps like Alertus) which seemed to work but did not set any defaults.  


How else can I set the default apps in a way that the users can change them if they desire? Local Group Policy? Another method of applying the XML? 


0 Comments   [ + ] Show comments

Answers (2)

Posted by: SMal.tmcc 5 years ago
Red Belt
0

I run a batch file to sysprep my masters and one line exports the app asso.  I use a mid level task to re-import after sysprep

Dism /Online /Export-DefaultAppAssociations:c:\temp\AppAssoc.xml

powershell Export-Startlayout -path c:\temp\layout.xml

start /wait notepad.exe C:\Windows\w2d\tmccimageversion.reg

start /wait regedit /s C:\Windows\w2d\tmccimageversion.reg

start /wait regedit /s C:\Windows\w2d\sus.reg

cd\windows\system32\sysprep

sysprep /generalize /oobe /shutdown /unattend:c:\windows\system32\sysprep\adminw10x64.xml

NOTE: this is a custom deployment but it is same for system images


Posted by: JS_DC 5 years ago
Orange Senior Belt
0

I ended up making a post installation task and got that to work.  I had to include both the cmd and xml in the zip file and just called the cmd in the full command line box. 

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
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