Open in the explorer

Set a default associations configuration file

Définir un fichier de configuration des associations par défaut

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › File Explorer FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Explorateur de fichiers
Supported on
At least Windows Server 2012, Windows 8 or Windows RT FR: Au minimum Windows Server 2012, Windows 8 ou Windows RT
ADMX file
WindowsExplorer.admx
Internal name
WindowsExplorer/DefaultAssociationsConfiguration

Explanation

This policy specifies the path to a file (stored locally or on a network location) that contains file type and protocol default application associations. This file can be created using the DISM tool.

For example:
Dism.exe /Online /Export-DefaultAppAssociations:C:\AppAssoc.txt

For more information, refer to the DISM documentation.

The file can be further edited after it is created to change how often the policy associations are applied. A "Version" attribute can be added to the "DefaultAssociations" element. The value should be an integer. A "Suggested" attribute can be added to any "Association" element. The value should be a bool and the default value is "false". When the policy is applied to a user, any Association that has Suggested="true" will only get applied once. If the Version value is ever incremented, Associations with Suggested="true" will get reapplied.

If this group policy is enabled and the client machine is domain-joined, the file will be processed and default associations will be applied at logon time.

If the policy is enabled, users will still be able to override default file type and protocol associations, but on next logon the file will be reapplied.

French text from Windows 11 26H2

Cette stratégie spécifie le chemin d’accès à un fichier (stocké localement ou sur un emplacement réseau) qui contient le type de fichier et les associations d’applications par défaut du protocole. Ce fichier peut être créé à l’aide de l’outil DISM.

Par exemple :
Dism.exe /Online /Export-DefaultAppAssociations:C:\AppAssoc.txt

Pour plus d’informations, reportez-vous à la documentation DISM.

Le fichier peut être modifié ultérieurement après sa création pour modifier la fréquence à laquelle les associations de stratégie sont appliquées. Un attribut « Version » peut être ajouté à l’élément « DefaultAssociations ». La valeur doit être un entier. Un attribut « Suggéré » peut être ajouté à n’importe quel élément « Association ». La valeur doit être une valeur booléenne et la valeur par défaut est « false ». Lorsque la stratégie est appliquée à un utilisateur, toute association ayant Suggested="true" ne sera appliquée qu’une seule fois. Si la valeur Version est incrémentée, les associations avec Suggested="true" sont réappliquées.

Si cette stratégie de groupe est activée et que l’ordinateur client est joint à un domaine, le fichier est traité et les associations par défaut sont appliquées au moment de l’ouverture de la session.

Si la stratégie est activée, les utilisateurs pourront toujours remplacer les associations de type de fichier et de protocole par défaut, mais lors de la prochaine ouverture de session, le fichier sera réappliqué.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: WindowsExplorer/DefaultAssociationsConfiguration
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Default Associations Configuration File
Set-ItemProperty -Path $k -Name 'DefaultAssociationsConfiguration' -Value '<value>' -Type String

Disable

# Disable: WindowsExplorer/DefaultAssociationsConfiguration
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": WindowsExplorer/DefaultAssociationsConfiguration
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
Remove-ItemProperty -Path $k -Name 'DefaultAssociationsConfiguration' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Default Associations Configuration FileFichier de configuration des associations par défautDefaultAssociationsConfiguration_TextBoxText boxtextDefaultAssociationsConfigurationREG_SZ
Default (UI): c:\windows\system32\defaultassociations.xml

Availability