Windows

Default File Associations Apps in Windows 10 and 11

()

Managing default file associations apps in Windows 10 and Windows 11 is one of the most important features when managing Windows. In this article we will see how to specify Adobe Reader DC as the default PDF reader and how to distribute the configuration automatically with GPOs (Active Directory) or SCCM (Configuration Manager).

In Windows 10 and Windows 11, file association is User-based. Therefore, to deploy the default file association you must first configure a reference machine and then export its configuration to an XML file that you will distribute to the rest of the computers.

Export default applications by file type

The first step in managing default file association is to export your configuration to an XML file.

When you run some applications (such as Adobe Reader) the program asks you if you want to configure it as the default program for certain types of files. If you have not done so, you can configure it in the settings of “Settings > Apps > Default apps > Choose defaults by file type“. Here you look for the extensions that you want to manage and choose the default application:

Choose default apps by file type in Windows 10 - Adobe Acrobat Reader DC
Specify Adobe Acrobat Reader DC as default .pdf reader in Windows 10

In Windows 11 you have a search engine to specify an extension and assign an application. In the following image we have searched for “.pd” and assigned Adobe Acrobat Reader DC to extensions. PDF:

Specify Adobe Acrobat Reader DC as default .pdf reader in Windows 11

Once the configuration is done, open a Command Prompt (as an administrator) and use a DISM command to export the current user’s settings to a . XML:

Default File Associations Windows 10 - DISM Online Export-DefaultAppsAssociations

Now you have a DefaultApps.xml with all of our user’s default file associations. In case you want to remove some associations, you can delete the lines.

In the example below, all lines not associated with Adobe Reader DC and PDF files have been deleted:

Now you can distribute the XML of default file associations by file type using one of the following methods.

Distribute the default file associations using GPOs

The most common method of distributing the default application file is with Active Directory’s Group Policy (GPO). Create a new GPO and go to the section “Computer Configuration > Policies > Administrative Templates > Windows Components > File Explorer > Set a default associations configuration file” and configure it with the DefaultApps.xml’s path.

Default File Associations Windows 10 - GPO - Active Directory - Set a default associations configuration file.
Default File Associations Windows – GPO – Active Directory – Set a default associations configuration file. Configuration
Default File Associations Windows 10 - GPO - Active Directory - Set a default associations configuration file. Result
Default File Associations Windows – GPO – Active Directory – Set a default associations configuration file. Result

As you can see from the images, you need to use a network share that all computers in the domain can access. It is also possible to copy the DefaultApps.xml to each computer and put a local path, but this makes it difficult to update the .XML. In my case I recommend using a share, specifically the sysvol.

Every time you want to add a new association in Windows 10 or Windows 11, you will only have to update the DefaultApps in the network share. Automatically when your devices update their policies, they will check the DefaultApps.xml and apply the changes.

Microsoft documentation say that despite having this GPO applied, users will be able to configure the application association in Windows. This is partially true, as the interface is not locked and the change can be made. But each time the policies are updated, the GPO settings will be reapplied.

Distribute the default file associations using SCCM / Configuration Manager

Another alternative to distribute the default application file is with Microsoft Endpoint Configuration Manager (MEMCM, formerly called SCCM). To do this we can distribute a Package or launch a step of “Run Command Line” from a Task Sequence. With both methods, you must include within the package the DefaultApps.xml and launch the following command:

You can distribute the package to the computers or add the step in a Task Sequence of New Computer as follows (after installing the Windows 10 or Windows 11 and restarting):

Default applications - SCCM - Task Sequence
Default File Associations Windows 10 – SCCM – Task Sequence

View default apps by extension in Windows

You can see the list of default applications set for each extension with the following CMD command:

Remove default apps by extension in Windows

To remove all the default applications by extension configured in Windows you can run the following CMD command:

With this command you will eliminate all the customization made both manually and by GPO or SCCM, but in case there is an active GPO / Distribution it will be configured automatically again.

FAQ about default file associations in Windows

How to set default file associations apps in Windows 10 and Windows 11?

In Windows 10 and Windows 11 you can configure the default file associations by file type in “Settings > Apps > Default apps > Choose defaults by file type” as indicated in this manual.

How to configure a GPO to set default file associations apps in Windows 10 and Windows 11?

You must create a GPO in Active Directory and configure the “Computer Configuration > Policies > Administrative Templates > Windows Components > File Explorer > Set a default associations configuration file” section by adding an .XML that you have previously created with this manual.

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Nando Corzo

Passionate about IT and Microsoft technologies with more than 5 years of experience in complex environments (Banking, Congresses and Public Services). Exploring and learning about Modern Workplace every day. I write about SCCM, Windows, Microsoft Intune, Hyper-V, etc...

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button