Configure time interval for service health reports
Configurer l’intervalle de temps pour les rapports d’intégrité du service
Explanation
This policy setting configures the time interval (in minutes) for the service health reports to be sent from endpoints.
If you disable or do not configure this setting, the default value will be applied. The default value is set at 60 minutes (1 hour).
If you configure this setting to 0, no service health reports will be sent.
The maximum value allowed to be set is 14400 minutes (10 days).
Ce paramètre de stratégie configure l’intervalle de temps (en minutes) d’envoi des rapports d’intégrité du service à partir des points de terminaison.
Si vous désactivez ou ne configurez pas ce paramètre, la valeur par défaut est appliquée. La valeur par défaut est définie à 60 minutes (1 heure).
Si vous configurez ce paramètre sur 0, aucun rapport d’intégrité du service n’est envoyé.
La valeur maximale autorisée est 14 400 minutes (10 jours).
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Reporting- Value name
ServiceHealthReportInterval
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX (see the options below) |
| Disabled | not defined in the ADMX (see the options below) |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.
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: WindowsDefender/Reporting_ServiceHealthReportInterval
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Reporting'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'ServiceHealthReportInterval' -Value 1 -Type DWord # assumed value (not defined in the ADMX)
# Configure time interval for service health reports
Set-ItemProperty -Path $k -Name 'ServiceHealthReportInterval' -Value 60 -Type DWord # between 0 and 14400Disable
# Disable: WindowsDefender/Reporting_ServiceHealthReportInterval
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Reporting'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'ServiceHealthReportInterval' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsDefender/Reporting_ServiceHealthReportInterval
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Reporting'
Remove-ItemProperty -Path $k -Name 'ServiceHealthReportInterval' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Configure time interval for service health reportsConfigurer l’intervalle de temps pour les rapports d’intégrité du serviceReporting_ServiceHealthReportInterval | Numeric boxdecimal | ServiceHealthReportInterval | REG_DWORD | Min: 0 · Max: 14400 · Default (UI): 60 |