Turn off toast notifications on the lock screen
Désactiver les notifications toast sur l’écran de verrouillage
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.
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
| 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: 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 DWordDisable
# 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 DWordRevert 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