Turn off calls during Quiet Hours
Désactiver les appels durant les Heures creuses
Explanation
This policy setting blocks voice and video calls during Quiet Hours.
If you enable this policy setting, voice and video calls will be blocked during the designated Quiet Hours time window each day, and users will not be able to customize any other Quiet Hours settings.
If you disable this policy setting, voice and video calls will be allowed during Quiet Hours, and users will not be able to customize this or any other Quiet Hours settings.
If you do not configure this policy setting, voice and video calls will be allowed during Quiet Hours by default. Adminstrators and users will be able to modify this setting.
Ce paramètre de stratégie bloque les appels vocaux et vidéo durant les Heures creuses.
Si vous l’activez, les appels vocaux et vidéo sont bloqués durant la fenêtre Heures creuses désignée chaque jour et les utilisateurs ne peuvent pas personnaliser d’autres paramètres d’Heures creuses.
Si vous le désactivez, les appels vocaux et vidéo sont autorisés durant les Heures creuses et les utilisateurs ne peuvent pas personnaliser ce paramètre, ni aucun autre paramètre d’Heures creuses.
Si vous ne configurez pas ce paramètre de stratégie, les appels vocaux et vidéo sont autorisés par défaut durant les Heures creuses. Les administrateurs et utilisateurs peuvent modifier ce paramètre.
Registry
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\QuietHours- Value name
AllowCalls
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 0 |
| Disabled | REG_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/NoCallsDuringQuietHours
$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 'AllowCalls' -Value 0 -Type DWordDisable
# Disable: WPN/NoCallsDuringQuietHours
$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 'AllowCalls' -Value 1 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WPN/NoCallsDuringQuietHours
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\QuietHours'
Remove-ItemProperty -Path $k -Name 'AllowCalls' -ErrorAction SilentlyContinue