Suppress all notifications
Supprimer toutes les notifications
Explanation
Use this policy setting to specify if you want Microsoft Defender Antivirus notifications to display on clients.
If you disable or do not configure this setting, Microsoft Defender Antivirus notifications will display on clients.
If you enable this setting, Microsoft Defender Antivirus notifications will not display on clients.
Utilisez ce paramètre de stratégie pour indiquer si vous souhaitez que les notifications de l’antivirus Microsoft Defender s’affichent sur les clients.
Si vous désactivez ce paramètre ou si vous ne le configurez pas, les notifications de l’antivirus Microsoft Defender s’affichent sur les clients.
Si vous activez ce paramètre, les notifications de l’antivirus Microsoft Defender ne s’affichent pas sur les clients.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\UX Configuration- Value name
Notification_Suppress
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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_Notification_Suppress
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\UX Configuration'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Notification_Suppress' -Value 1 -Type DWordDisable
# Disable: WindowsDefender/UX_Configuration_Notification_Suppress
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\UX Configuration'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Notification_Suppress' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsDefender/UX_Configuration_Notification_Suppress
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\UX Configuration'
Remove-ItemProperty -Path $k -Name 'Notification_Suppress' -ErrorAction SilentlyContinue