Windows 10: Export and Import Default App Associations for New Users in Windows  

Page 1 of 4 123 ... LastLast
    Export and Import Default App Associations for New Users in Windows

    Export and Import Default App Associations for New Users in Windows

    How to Export and Import Custom Default App Associations for New Users in Windows 10
    Published by Category: Installation & Upgrade
    01 Apr 2017
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 20,874

    Show Printable Version 


    How to Export and Import Custom Default App Associations for New Users in Windows 10

    information   Information
    You can use the default application association-servicing commands to import, export, list, and remove the settings that specify which application opens a file based on the file name extension type or protocol.

    This tutorial will show you how to export and import your custom default app associations in Windows 10 to be applied for each new user afterwards during their first sign in.

    You must be signed in as an administrator to be able to export, import, and remove default app associations.


    CONTENTS:
    • Option One: To Export Custom Default App Associations
    • Option Two: To Import Custom Default App Associations for New Users
    • Option Three: To Remove Custom Default App Associations






    Export and Import Default App Associations for New Users in Windows OPTION ONE Export and Import Default App Associations for New Users in Windows
    To Export Custom Default App Associations

    Note   Note
    This option exports the custom default app associations from your account to an .xml file.


    1. Choose all of the default apps you want to open files with. This is what will be exported.

    2. When finished, open an elevated command prompt.

    3. Copy and paste the command below into the elevated command prompt, and press Enter. (see screenshot below)

    Code:
    dism /online /Export-DefaultAppAssociations:"%UserProfile%\Desktop\MyDefaultAppAssociations.xml"

    Click image for larger version. 

Name:	export_default_app_associations.png 
Views:	601 
Size:	22.0 KB 
ID:	25452

    4. You will now have a MyDefaultAppAssociations.xml file on your desktop that is your custom default app associations.

    5. You can now close the elevated command prompt if you like, or continue on to Option Two below to import the .xml file.






    Export and Import Default App Associations for New Users in Windows OPTION TWO Export and Import Default App Associations for New Users in Windows
    To Import Custom Default App Associations for New Users

    Note   Note
    This option imports your exported custom default app associations from Option One to be applied for each new user afterwards during their first sign in instead of using Windows default app associations.

    Users will still be able to make changes to their default apps.


    1. If you have not already, copy the exported MyDefaultAppAssociations.xml file from Option One to your desktop.

    2. Open an elevated command prompt.

    3. Copy and paste the command below into the elevated command prompt, and press Enter. (see screenshot below)
    Note   Note
    If you renamed the MyDefaultAppAssociations.xml file or it's at another location than your desktop, then you will need to change the part of the command in red below for the new name and/or full path.


    Code:
    dism /online /Import-DefaultAppAssociations:"%UserProfile%\Desktop\MyDefaultAppAssociations.xml"

    Click image for larger version. 

Name:	import_default_app_associations.png 
Views:	433 
Size:	21.8 KB 
ID:	25453

    4. You can now close the elevated command prompt if you like.






    Export and Import Default App Associations for New Users in Windows OPTION THREE Export and Import Default App Associations for New Users in Windows
    To Remove Custom Default App Associations

    Note   Note
    This option removes the imported custom default app associations from Option Two to have Windows default app associations applied for each new user afterwards during their first sign in instead of your custom default app associations.


    1. Open an elevated command prompt.

    2. Copy and paste the command below into the elevated command prompt, and press Enter. (see screenshot below)

    Dism.exe /Online /Remove-DefaultAppAssociations

    Click image for larger version. 

Name:	remove_default_app_associations.png 
Views:	400 
Size:	18.9 KB 
ID:	25454

    3. You can now close the elevated command prompt if you like.



    That's it,
    Shawn



  1. Posts : 6
    Windows 10 Pro x64
       18 Aug 2015 #1

    you test the import option after Windows reinstallation?
      My ComputerSystem Spec


  2. Posts : 20,874
    64-bit Windows 10 Pro build 16199
    Thread Starter
       18 Aug 2015 #2

    Hello VandIT,

    As long as the apps you have set as default are installed, it'll work.
      My ComputersSystem Spec


  3. Posts : 6
    Windows 10 Pro x64
       18 Aug 2015 #3

    it does not work, after reinstalling and import of MyDefaultAppAssociations.xml, I am asked what program, I want to set as the default ...
      My ComputerSystem Spec


  4. Posts : 20,874
    64-bit Windows 10 Pro build 16199
    Thread Starter
       18 Aug 2015 #4

    Is the app you had set as default selected to continue to use as the default app?

    Just to note, this will only affect new accounts that you added after importing.
      My ComputersSystem Spec


  5. Posts : 6
    Windows 10 Pro x64
       18 Aug 2015 #5

    Brink said: View Post
    Is the app you had set as default selected to continue to use as the default app?
    NO

    Brink said: View Post
    Just to note, this will only affect new accounts that you added after importing.
    how can I understand that? Create an account? Why it does not work with existing account?
      My ComputerSystem Spec


  6. Posts : 20,874
    64-bit Windows 10 Pro build 16199
    Thread Starter
       18 Aug 2015 #6

    I'm not sure what you mean by how you can understand that?

    It doesn't work with existing accounts, because this will only set the default associations for new users created afterwards. See the information box at the top of the tutorial to help.
      My ComputersSystem Spec

  7.    14 Nov 2015 #7

    Brink said: View Post
    I'm not sure what you mean by how you can understand that?

    It doesn't work with existing accounts, because this will only set the default associations for new users created afterwards. See the information box at the top of the tutorial to help.
    Does it work if add the exported commands in autounattend.xml file, for clean install?
      My ComputerSystem Spec


  8. Posts : 20,874
    64-bit Windows 10 Pro build 16199
    Thread Starter
       14 Nov 2015 #8

    SunLion said: View Post
    Does it work if add the exported commands in autounattend.xml file, for clean install?
    Hello SunLion, and welcome to Ten Forums.

    I've never tried it, but it won't hurt to give it a try.

    If you do, please let us know how it went.
      My ComputersSystem Spec


  9. Posts : 147
    Windows 10 x64
       14 Nov 2015 #9

    SunLion said: View Post
    Does it work if add the exported commands in autounattend.xml file, for clean install?
    I've never used it in an unattend file, but I do have it run in a script on first login, so I suspect it would work in an unattend file, too.

    This is the only automated way to keep default file associations for new users after Sysprep is run. This was actually changed in Windows 8 (and kept the same in Windows 10), but since so few people deployed Windows 8, few people know about this change from Windows 7.
      My ComputerSystem Spec


 
Page 1 of 4 123 ... LastLast

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...
In Windows 8, I would plug my phone in and it would display all the pictures on the phone and highlight the new ones. I would then click IMPORT. Boom. Done. With Windows 10 it doesnt seem as straight forward. I plug my phone in and sometimes...
Can't find an option to import bookmarks in Spartan. Please let me know if I am missing it. Thanks.
No way to import bookmarks? in Browsers and Email
In the Edge browser is there no way to import bookmarks? They've shown up in Spartan but not this time with 10122. Jim
How to Import and Export Bookmarks via HTML in Firefox This tutorial will show you how to easily export and import your bookmarks in the Mozilla Firefox web browser using HTML files. As well as acting as a backup of your bookmarks this is also...
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 14:10.
Find Us