Open in the explorer

Turn off toast notifications on the lock screen

Désactiver les notifications toast sur l’écran de verrouillage

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Start Menu and Taskbar › Notifications FR: Configuration utilisateur › Stratégies › Modèles d'administration › Menu Démarrer et barre des tâches › Notifications
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
WPN.admx
Internal name
WPN/NoLockScreenToastNotification

Explanation

This policy setting turns off toast notifications on the lock screen.

If you enable this policy setting, applications will not be able to raise toast notifications on the lock screen.

If you disable or do not configure this policy setting, toast notifications on the lock screen 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.

French text from Windows 11 26H2

Ce paramètre de stratégie désactive les notifications toast sur l’écran de verrouillage.

Si vous activez ce paramètre de stratégie, les applications ne peuvent pas émettre des notifications toast sur l’écran de verrouillage.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les notifications toast sur l’écran de verrouillage 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_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications
Value name
NoToastApplicationNotificationOnLockScreen
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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: WPN/NoLockScreenToastNotification
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoToastApplicationNotificationOnLockScreen' -Value 1 -Type DWord

Disable

# Disable: WPN/NoLockScreenToastNotification
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoToastApplicationNotificationOnLockScreen' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": WPN/NoLockScreenToastNotification
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications'
Remove-ItemProperty -Path $k -Name 'NoToastApplicationNotificationOnLockScreen' -ErrorAction SilentlyContinue

Availability