/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Windows 10 File Association resetting

12/21/2018 2512 views

During OSD DefaultApps.xml is being set so that IE and Adobe Reader DC are default. However, once a new user logs on those defaults are reset back to Edge. I have researched and made probably 4 changes based on what folks are currently doing but cannot seem to get the DefaultApps to remain. I guess my GoogleFu is weak.


Any ideas? Currently using the following...

<?xml version="1.0" encoding="UTF-8"?>

<DefaultAssociations>

  <Association Identifier=".arw" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".bmp" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".cr2" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".crw" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".dib" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".epub" ProgId="AppXvepbp3z66accmsd0x877zbbxjctkpr6t" ApplicationName="Microsoft Edge" />

  <Association Identifier=".erf" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".gif" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".htm" ProgId="htmlfile" ApplicationName="Internet Explorer" />

  <Association Identifier=".html" ProgId="htmlfile" ApplicationName="Internet Explorer" />

  <Association Identifier=".jfif" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".jpe" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".jpeg" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".jpg" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".jxr" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".kdc" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".MP2" ProgId="WMP11.AssocFile.MP3" ApplicationName="Windows Media Player" />

  <Association Identifier=".mrw" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".nef" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".nrw" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".orf" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".pdf" ProgId="AcroExch.Document.DC" ApplicationName="Adobe Acrobat Reader DC" />

  <Association Identifier=".pef" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".png" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".raf" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".raw" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".rw2" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".rwl" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".sr2" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".srw" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".tif" ProgId="PhotoViewer.FileAssoc.Tiff" ApplicationName="Windows Photo Viewer" />

  <Association Identifier=".tiff" ProgId="PhotoViewer.FileAssoc.Tiff" ApplicationName="Windows Photo Viewer" />

  <Association Identifier=".txt" ProgId="txtfile" ApplicationName="Notepad" />

  <Association Identifier=".url" ProgId="IE.AssocFile.URL" ApplicationName="Internet Browser" />

  <Association Identifier=".wdp" ProgId="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" ApplicationName="Photos" />

  <Association Identifier=".website" ProgId="IE.AssocFile.WEBSITE" ApplicationName="Internet Explorer" />

  <Association Identifier="http" ProgId="AppXq0fevzme2pys62n3e0fbqa7peapykr8v" ApplicationName="Internet Explorer" />

  <Association Identifier="https" ProgId="AppX90nv6nhay5n6a98fnetv7tpk64pp35es" ApplicationName="Internet Explorer" />

</DefaultAssociations>

0 Comments   [ + ] Show comments

Comments


All Answers

1

Set the only the items you want to change (e.g. Edge to I.E.) and store it onto a read-only network file share (\\<server>\<Shared Folder>\GPOTest\IEDefaultAssociations.xml)


Save file as "IEDefaultAssociations.xml"

 <?xml version="1.0" encoding="UTF-8"?>

<DefaultAssociations>

  <Association Identifier=".htm" ProgId="htmlfile" ApplicationName="Internet Explorer" />

  <Association Identifier=".html" ProgId="htmlfile" ApplicationName="Internet Explorer" />

  <Association Identifier=".url" ProgId="IE.AssocFile.URL" ApplicationName="Internet Browser" />

  <Association Identifier=".website" ProgId="IE.AssocFile.WEBSITE" ApplicationName="Internet Explorer" />

  <Association Identifier="http" ProgId="IE.HTTP" ApplicationName="Internet Explorer" />

  <Association Identifier="https" ProgId="IE.HTTPS" ApplicationName="Internet Explorer" />

</DefaultAssociations>


Update / Create a GPO


Computer Configuration \ Policies \ Administrative Templates \ Windows Components \ File Explorer 


Set a default associations configuration file: Enabled 

Default Associations Configuration File \\<server>\<Shared Folder>\GPOTest\IEDefaultAssociations.xml 


Answered 12/24/2018 by: giesbrs
White Belt

  • This disables the end user from, at some point, being able to manually change back to Edge as default, correct?
    • Yes the GPO will override user settings at login.
 
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