Open in the explorer

Display additional text to clients when they need to perform an action

Afficher du texte supplémentaire pour les clients lorsqu’ils doivent effectuer une action

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Defender Antivirus › Client Interface FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Antivirus Microsoft Defender › Interface client
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
WindowsDefender.admx
Internal name
WindowsDefender/UX_Configuration_CustomDefaultActionToastString

Explanation

This policy setting allows you to configure whether or not to display additional text to clients when they need to perform an action. The text displayed is a custom administrator-defined string. For example, the phone number to call the company help desk. The client interface will only display a maximum of 1024 characters. Longer strings will be truncated before display.

If you enable this setting, the additional text specified will be displayed.

If you disable or do not configure this setting, there will be no additional text displayed.

French text from Windows 11 23H2

Ce paramètre de stratégie vous permet de configurer s’il convient ou non d’afficher du texte supplémentaire pour les clients lorsqu’ils doivent effectuer une action. Le texte affiché est une chaîne définie par l’administrateur personnalisée. Il peut s’agir, par exemple, du numéro de téléphone pour appeler l’assistance de la société. L’interface client affiche uniquement un maximum de 1 024 caractères. Les chaînes plus longues sont tronquées avant d’être affichées.

Si vous activez ce paramètre, le texte supplémentaire spécifié est affiché.

Si vous désactivez ou ne configurez pas ce paramètre, aucun texte supplémentaire n’est affiché.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\UX Configuration
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: WindowsDefender/UX_Configuration_CustomDefaultActionToastString
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\UX Configuration'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Display additional text to clients when they need to perform an action
Set-ItemProperty -Path $k -Name 'CustomDefaultActionToastString' -Value '<value>' -Type String

Disable

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

Revert to "Not configured"

# Revert to "Not configured": WindowsDefender/UX_Configuration_CustomDefaultActionToastString
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\UX Configuration'
Remove-ItemProperty -Path $k -Name 'CustomDefaultActionToastString' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Display additional text to clients when they need to perform an actionAfficher du texte supplémentaire pour les clients lorsqu’ils doivent effectuer une actionUX_Configuration_CustomDefaultActionToastStringText boxtextCustomDefaultActionToastStringREG_SZ
Required

Availability

Windows 11

— 26H2— 25H2— 24H2✓ 23H2✓ 22H2✓ 21H2

Windows Server