Turn off toast notifications
Désactiver les notifications toast
Explanation
This policy setting turns off toast notifications for applications.
If you enable this policy setting, applications will not be able to raise toast notifications.
Note that this policy does not affect taskbar notification balloons.
Note that Windows system features are not affected by this policy. You must enable/disable system features individually to stop their ability to raise toast notifications.
If you disable or do not configure this policy setting, toast notifications are enabled and can be turned off by the administrator or user.
No reboots or service restarts are required for this policy setting to take effect.
Ce paramètre de stratégie désactive les notifications toast pour les applications.
Si vous activez ce paramètre de stratégie, les applications ne peuvent pas générer de notifications toast.
Notez que cette stratégie n’a pas d’impact sur les bulles de notification de la barre des tâches.
Notez que les fonctionnalités système Windows ne sont pas affectées par cette stratégie. Vous devez activer/désactiver les fonctionnalités système individuellement pour arrêter leur capacité de génération de notifications toast.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les notifications toast sont activées et peuvent être désactivées par l’administrateur ou l’utilisateur.
Aucun redémarrage du système ou du service n’est requis pour que cette stratégie prenne effet.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotificationsHKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications- Value name
NoToastApplicationNotification
| 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.
Computer (HKLM)
Enable
# Enable: WPN/NoToastNotification
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoToastApplicationNotification' -Value 1 -Type DWordDisable
# Disable: WPN/NoToastNotification
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoToastApplicationNotification' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WPN/NoToastNotification
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications'
Remove-ItemProperty -Path $k -Name 'NoToastApplicationNotification' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"