Turn off notification mirroring
Désactiver la mise en miroir des notifications
Explanation
This policy setting turns off notification mirroring.
If you enable this policy setting, notifications from applications and system will not be mirrored to your other devices.
If you disable or do not configure this policy setting, notifications will be mirrored, 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 la mise en miroir des notifications.
Si vous activez ce paramètre de stratégie, les notifications émanant des applications et du système ne seront pas mises en miroir sur vos autres appareils.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les notifications seront mises en miroir et pourront être désactivées par l’administrateur ou par l’utilisateur.
La prise en compte de ce paramètre de stratégie ne nécessite aucun redémarrage d’appareil ou de service.
Registry
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications- Value name
DisallowNotificationMirroring
| 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/NoNotificationMirroring
$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 'DisallowNotificationMirroring' -Value 1 -Type DWordDisable
# Disable: WPN/NoNotificationMirroring
$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 'DisallowNotificationMirroring' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WPN/NoNotificationMirroring
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications'
Remove-ItemProperty -Path $k -Name 'DisallowNotificationMirroring' -ErrorAction SilentlyContinue