Open in the explorer

Turn off Quiet Hours

Désactiver les heures creuses

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
Windows Server 2012 R2, Windows 8.1 or Windows RT 8.1 only FR: Windows Server 2012 R2, Windows 8.1 ou Windows RT 8.1 uniquement
ADMX file
WPN.admx
Internal name
WPN/NoQuietHours

Explanation

This policy setting turns off Quiet Hours functionality.

If you enable this policy setting, toast notifications will not be suppressed and some background tasks will not be deferred during the designated Quiet Hours time window each day.

If you disable this policy setting, toast notifications will be suppressed and some background task deferred during the designated Quiet Hours time window. Users will not be able to change this or any other Quiet Hours settings.

If you do not configure this policy setting, Quiet Hours are enabled by default but can be turned off or by the administrator or user.

French text from Windows 11 26H2

Ce paramètre de stratégie permet de désactiver la fonctionnalité Heures creuses.

Si vous l’activez, les notifications toast ne sont pas supprimées et certaines tâches en arrière-plan ne sont pas différées jusqu’à la fenêtre Heures creuses désignée chaque jour.

Si vous le désactivez, les notifications toast sont supprimées et certaines tâches d’arrière-plan sont différées jusqu’à la fenêtre Heures creuses désignée. Les utilisateurs ne peuvent pas modifier ce paramètre ou tout autre paramètre Heures creuses.

Si vous ne configurez pas ce paramètre de stratégie, les Heures creuses sont activées par défaut mais elles peuvent être désactivées par l’administrateur ou l’utilisateur.

Registry

HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\QuietHours
Value name
Enable
StateValue written
EnabledREG_DWORD = 0
DisabledREG_DWORD = 1

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/NoQuietHours
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\QuietHours'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Enable' -Value 0 -Type DWord

Disable

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

Revert to "Not configured"

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

Availability