Windows10 Setting Default App associations with DISM after sysprep not


  1. Posts : 5
    Windows 10
       #1

    Windows10 Setting Default App associations with DISM after sysprep not


    Hi Everyone

    I am working on creating new Windows10 images for our organization. I am using CopyProfile during sysprep to create a default Windows profile with all our settings. For some reason the default app associations are getting cleared during sysprep. I need to find a way to set them after deployment.

    I have tried using the DISM command to export my app associations to an .xml before sysprep. and again import them after imaging. I have tried running the DISM import command manually and setting it in Group policy under “Set a default associations config file” . Both do not seem to have any effect on Default application settings.

    I have also tried manually copying the contents of my DefaultApp.xml export to the OEMDefaultAssociations.xml file under system32. This also does not change anything

    I'm wondering if anyone has run into a similar issue and could offer some advice.
    The help is much appreciated

    Thank You
    Chris Parsons
      My Computer


  2. Posts : 17,661
    Windows 10 Pro
       #2

    Hi Chris, welcome to Ten Forums.

    Could you please give an example of an app set to be default in Audit Mode but then losing its default status after Sysprep.

    Kari
      My Computer


  3. Posts : 5
    Windows 10
    Thread Starter
       #3

    Hi Kari thank you for the reply!

    For example I have Firefox set as my default web browser before sysprep and it is cleared after. All my File-Type associations have not changed , just default application settings.

    Here is my exported defaultapps.xml file that I am attempting to set after deployment.

    <?xml version="1.0" encoding="UTF-8"?><DefaultAssociations> <Association Identifier=".3gp2" ProgId="WMP11.AssocFile.3G2" ApplicationName="Windows Media Player" /> <Association Identifier=".bmp" ProgId="Paint.Picture" ApplicationName="Paint" /> <Association Identifier=".dib" ProgId="Paint.Picture" ApplicationName="Paint" /> <Association Identifier=".emf" ProgId="emffile" ApplicationName="Paint" /> <Association Identifier=".gif" ProgId="PBrush" ApplicationName="Paint" /> <Association Identifier=".htm" ProgId="FirefoxHTML" ApplicationName="Firefox" /> <Association Identifier=".html" ProgId="FirefoxHTML" ApplicationName="Firefox" /> <Association Identifier=".ico" ProgId="PBrush" ApplicationName="Paint" /> <Association Identifier=".jfif" ProgId="PBrush" ApplicationName="Paint" /> <Association Identifier=".jpe" ProgId="PBrush" ApplicationName="Paint" /> <Association Identifier=".jpeg" ProgId="PBrush" ApplicationName="Paint" /> <Association Identifier=".jpg" ProgId="PBrush" ApplicationName="Paint" /> <Association Identifier=".MP2" ProgId="WMP11.AssocFile.MP3" ApplicationName="Windows Media Player" /> <Association Identifier=".mpeg" ProgId="WMP11.AssocFile.mpeg" ApplicationName="Windows Media Player" /> <Association Identifier=".oxps" ProgId="Windows.XPSReachViewer" ApplicationName="XPS Viewer" /> <Association Identifier=".png" ProgId="PBrush" ApplicationName="Paint" /> <Association Identifier=".rle" ProgId="rlefile" ApplicationName="Paint" /> <Association Identifier=".tif" ProgId="PBrush" ApplicationName="Paint" /> <Association Identifier=".tiff" ProgId="PBrush" ApplicationName="Paint" /> <Association Identifier=".txt" ProgId="txtfile" ApplicationName="Notepad" /> <Association Identifier=".url" ProgId="IE.AssocFile.URL" ApplicationName="Internet Browser" /> <Association Identifier=".website" ProgId="IE.AssocFile.WEBSITE" ApplicationName="Firefox" /> <Association Identifier=".wmf" ProgId="wmffile" ApplicationName="Paint" /> <Association Identifier=".xps" ProgId="Windows.XPSReachViewer" ApplicationName="XPS Viewer" /> <Association Identifier="http" ProgId="FirefoxURL" ApplicationName="Firefox" /> <Association Identifier="https" ProgId="FirefoxURL" ApplicationName="Firefox" /> <Association Identifier="mailto" ProgId="Outlook.URL.mailto.15" ApplicationName="Outlook 2016" /></DefaultAssociations>

    Thanks!
      My Computer


  4. Posts : 17,661
    Windows 10 Pro
       #4

    That's a pain in the you know where to read!

    Please edit your post and put the XML code in [CODE] tags:

    [CODE]XML code here[/CODE]
      My Computer


  5. Posts : 5
    Windows 10
    Thread Starter
       #5

    I am sorry about that, yep that is definitely impossible to read. I did not realize.
    Code:
    <?xml version="1.0" encoding="UTF-8"?><DefaultAssociations>  <Association Identifier=".3gp2" ProgId="WMP11.AssocFile.3G2" ApplicationName="Windows Media Player" />  <Association Identifier=".bmp" ProgId="Paint.Picture" ApplicationName="Paint" />  <Association Identifier=".dib" ProgId="Paint.Picture" ApplicationName="Paint" />  <Association Identifier=".emf" ProgId="emffile" ApplicationName="Paint" />  <Association Identifier=".gif" ProgId="PBrush" ApplicationName="Paint" />  <Association Identifier=".htm" ProgId="FirefoxHTML" ApplicationName="Firefox" />  <Association Identifier=".html" ProgId="FirefoxHTML" ApplicationName="Firefox" />  <Association Identifier=".ico" ProgId="PBrush" ApplicationName="Paint" />  <Association Identifier=".jfif" ProgId="PBrush" ApplicationName="Paint" />  <Association Identifier=".jpe" ProgId="PBrush" ApplicationName="Paint" />  <Association Identifier=".jpeg" ProgId="PBrush" ApplicationName="Paint" />  <Association Identifier=".jpg" ProgId="PBrush" ApplicationName="Paint" />  <Association Identifier=".MP2" ProgId="WMP11.AssocFile.MP3" ApplicationName="Windows Media Player" />  <Association Identifier=".mpeg" ProgId="WMP11.AssocFile.mpeg" ApplicationName="Windows Media Player" />  <Association Identifier=".oxps" ProgId="Windows.XPSReachViewer" ApplicationName="XPS Viewer" />  <Association Identifier=".png" ProgId="PBrush" ApplicationName="Paint" />  <Association Identifier=".rle" ProgId="rlefile" ApplicationName="Paint" />  <Association Identifier=".tif" ProgId="PBrush" ApplicationName="Paint" />  <Association Identifier=".tiff" ProgId="PBrush" ApplicationName="Paint" />  <Association Identifier=".txt" ProgId="txtfile" ApplicationName="Notepad" />  <Association Identifier=".url" ProgId="IE.AssocFile.URL" ApplicationName="Internet Browser" />  <Association Identifier=".website" ProgId="IE.AssocFile.WEBSITE" ApplicationName="Firefox" />  <Association Identifier=".wmf" ProgId="wmffile" ApplicationName="Paint" />  <Association Identifier=".xps" ProgId="Windows.XPSReachViewer" ApplicationName="XPS Viewer" />  <Association Identifier="http" ProgId="FirefoxURL" ApplicationName="Firefox" />  <Association Identifier="https" ProgId="FirefoxURL" ApplicationName="Firefox" />  <Association Identifier="mailto" ProgId="Outlook.URL.mailto.15" ApplicationName="Outlook 2016" /></DefaultAssociations>
      My Computer


  6. Posts : 17,661
    Windows 10 Pro
       #6

    Chris Parsons said:
    I am sorry about that, yep that is definitely impossible to read. I did not realize.
    LOL not much better now, let me try to edit it to readable form:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <DefaultAssociations>
      <Association Identifier=".3gp2" ProgId="WMP11.AssocFile.3G2" ApplicationName="Windows Media Player" />
      <Association Identifier=".bmp" ProgId="Paint.Picture" ApplicationName="Paint" />
      <Association Identifier=".dib" ProgId="Paint.Picture" ApplicationName="Paint" />
      <Association Identifier=".emf" ProgId="emffile" ApplicationName="Paint" />
      <Association Identifier=".gif" ProgId="PBrush" ApplicationName="Paint" />
      <Association Identifier=".htm" ProgId="FirefoxHTML" ApplicationName="Firefox" />
      <Association Identifier=".html" ProgId="FirefoxHTML" ApplicationName="Firefox" />
      <Association Identifier=".ico" ProgId="PBrush" ApplicationName="Paint" />
      <Association Identifier=".jfif" ProgId="PBrush" ApplicationName="Paint" />
      <Association Identifier=".jpe" ProgId="PBrush" ApplicationName="Paint" />
      <Association Identifier=".jpeg" ProgId="PBrush" ApplicationName="Paint" />
      <Association Identifier=".jpg" ProgId="PBrush" ApplicationName="Paint" />
      <Association Identifier=".MP2" ProgId="WMP11.AssocFile.MP3" ApplicationName="Windows Media Player" />
      <Association Identifier=".mpeg" ProgId="WMP11.AssocFile.mpeg" ApplicationName="Windows Media Player" />
      <Association Identifier=".oxps" ProgId="Windows.XPSReachViewer" ApplicationName="XPS Viewer" />
      <Association Identifier=".png" ProgId="PBrush" ApplicationName="Paint" />
      <Association Identifier=".rle" ProgId="rlefile" ApplicationName="Paint" />
      <Association Identifier=".tif" ProgId="PBrush" ApplicationName="Paint" />
      <Association Identifier=".tiff" ProgId="PBrush" ApplicationName="Paint" />
      <Association Identifier=".txt" ProgId="txtfile" ApplicationName="Notepad" />
      <Association Identifier=".url" ProgId="IE.AssocFile.URL" ApplicationName="Internet Browser" />
      <Association Identifier=".website" ProgId="IE.AssocFile.WEBSITE" ApplicationName="Firefox" />
      <Association Identifier=".wmf" ProgId="wmffile" ApplicationName="Paint" />
      <Association Identifier=".xps" ProgId="Windows.XPSReachViewer" ApplicationName="XPS Viewer" />
      <Association Identifier="http" ProgId="FirefoxURL" ApplicationName="Firefox" />
      <Association Identifier="https" ProgId="FirefoxURL" ApplicationName="Firefox" />
      <Association Identifier="mailto" ProgId="Outlook.URL.mailto.15" ApplicationName="Outlook 2016" />
    </DefaultAssociations>

    OK, at least it's now readable.

    I will do some tests and post back regardless what or if I find something. In the mean time let's hope other members will see this and come up with some ideas.

    Kari
      My Computer


  7. Posts : 5
    Windows 10
    Thread Starter
       #7

    Thank you so much for the help , and sorry about the annoyance with .xml formatting.
      My Computer


  8. Posts : 17,661
    Windows 10 Pro
       #8

    Chris Parsons said:
    Thank you so much for the help , and sorry about the annoyance with .xml formatting.
    It's nothing, no reason to apologize :)

    I am quite experienced with Sysprep (not bragging, just stating a fact) and to be honest I love to get new Sysprep related issues to test and try to resolve.

    I am not promising any tight schedule, just saying I will test this and post something within 24 hours.

    Kari
      My Computer


  9. Posts : 5
    Windows 10
    Thread Starter
       #9

    Awesome, you definitely have more experience with sysprep then I do then!
    No rush and if you don't find a solution I just appreciate the help, and you taking the time to have a look at my issue.

    Thanks
    Chris
      My Computer


  10. Posts : 1
    Windows 10 V1607
       #10

    Hi. I have a similar issue (Win10, Build 1607), only after the image has been deployed. I've used DISM to create the XML file, I've modified the XML file (we just want to change the default browser to IE as Edge). The XML file contents are at the end of this thread (I am assuming I can use just a subset...I've tried a whole export of all the settings with DISM but that didn't work either)


    I've copied the XML upto NETLOGON on the DC
    Create a new GPO with the setting as first person reported (“Set a default associations config file”) to the path to NETLOGON (\\domainame\netlogon\dismlist-ie-gpo.xml)
    Configured a new test machine that never had the GPO applied to be Edge browser (it was, just verified it)
    Waited a couple of minutes, reboot the machine, login, the GPO is applied (per gpresult /r - I have a one-off policy with just that setting in it)
    RSOP.msc confirms the setting is being seen by the machine
    I go to the file associations - it still says Edge is the browser


    So I copied that XML (from \\domain\netlogon) to the local drive (C:\temp)
    Update the GPO to use the file from c:\temp
    Wait a couple of minutes
    reboot and logon
    file association still doesn't change

    Using RSOP, I look at the setting - it sees the XML file is located at c:\temp

    Any suggestions?

    Thanks


    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <DefaultAssociations>
      <Association Identifier=".website" ProgId="IE.AssocFile.WEBSITE" ApplicationName="Internet Explorer" />
      <Association Identifier=".htm" ProgId="htmlfile" ApplicationName="Internet Explorer" />
      <Association Identifier=".html" ProgId="htmlfile" ApplicationName="Internet Explorer" />
      <Association Identifier="http" ProgId="IE.HTTP" ApplicationName="Internet Explorer" />
      <Association Identifier="https" ProgId="IE.HTTPS" ApplicationName="Internet Explorer" />
    </DefaultAssociations>
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:17.
Find Us




Windows 10 Forums