Désactiver les notifications toast sur l’écran de verrouillage
Turn off toast notifications on the lock screen
Explication
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.
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.
Registre
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications- Nom de la valeur
NoToastApplicationNotificationOnLockScreen
| État | Valeur écrite |
|---|---|
| Activé | REG_DWORD = 1 |
| Désactivé | REG_DWORD = 0 |
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Activer
# Activer : 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 DWordDésactiver
# Désactiver : 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 DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : WPN/NoLockScreenToastNotification
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications'
Remove-ItemProperty -Path $k -Name 'NoToastApplicationNotificationOnLockScreen' -ErrorAction SilentlyContinue