Windows 10: Windows10 Setting Default App associations with DISM after sysprep not

  1.    07 Mar 2017 #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 ComputerSystem Spec


  2. Posts : 12,968
    Windows 10 Pro
       07 Mar 2017 #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 ComputerSystem Spec

  3.    07 Mar 2017 #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 ComputerSystem Spec


  4. Posts : 12,968
    Windows 10 Pro
       07 Mar 2017 #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 ComputerSystem Spec

  5.    07 Mar 2017 #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 ComputerSystem Spec


  6. Posts : 12,968
    Windows 10 Pro
       07 Mar 2017 #6

    Chris Parsons said: View Post
    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 ComputerSystem Spec

  7.    07 Mar 2017 #7

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


  8. Posts : 12,968
    Windows 10 Pro
       07 Mar 2017 #8

    Chris Parsons said: View Post
    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 ComputerSystem Spec

  9.    07 Mar 2017 #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 ComputerSystem Spec


  10. Posts : 1
    Windows 10 V1607
       02 May 2017 #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 ComputerSystem Spec


 

Related Threads
How to Restore Default Apps for File Extension Type Associations in Windows 10 A default app is the program that Windows uses automatically when you open a particular file type or protocol. This tutorial will show you how to restore the...
How to Export and Import Custom Default App Associations for New Users in Windows 10 You can use the default application association-servicing commands to import, export, list, and remove the settings that specify which application opens a file...
Hi I used the sysprep tutorial to create an image for the classroom - during sysprep I created a users profile and locked all the personalization settings - in the system group policy I set a default lock screen image and set to not allow changes to...
Hello, Once in awhile I check my system files using SFC, I just checked it but found problems and wasn't able to fix them. So I ran the DISM command but then again couldn't fix it. DISM /Online /Cleanup-Image /restorehealth The DISM...
Every time I reboot, the file associations for images (jpg/png), media (mp3/wav/mp4/mkv) revert back to the default Microsoft apps. I prefer to use VLC for videos, Winamp for audio and Irfanview for images, and it's getting really annoying having to...
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 18:10.
Find Us