Configurer le comportement de la maintenance planifiée : valeur de Registre EnabledExecution et 1 autresOrdinateurHKLM\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics
- ID de stratégie
- ScheduledDiagnosticsExecutionPolicy
- Étendue
- Configuration ordinateur
- Pris en charge sur
- Au minimum Windows Server 2008 R2 ou Windows 7
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Catégorie
- Système › Dépannage et diagnostics › Maintenance planifiée
Registre
EnabledExecution
REG_DWORDOrdinateur- Valeur si activée
- 1
- Valeur si désactivée
- 0
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics] ; Options (en utiliser une seule) ; Activé "EnabledExecution"=dword:00000001 ; Désactivé "EnabledExecution"=dword:00000000
CMD
:: Options (en utiliser une seule) :: Activé reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics" /v "EnabledExecution" /t REG_DWORD /d 1 /f :: Désactivé reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics" /v "EnabledExecution" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Force | Out-Null # Options (en utiliser une seule) # Activé New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Name 'EnabledExecution' -PropertyType DWord -Value 1 -Force | Out-Null # Désactivé New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Name 'EnabledExecution' -PropertyType DWord -Value 0 -Force | Out-Null
EnabledExecutionLevel
REG_DWORDOrdinateur- Valeur si activée
- Dépend de la valeur de l'option
- Élément
- Niveau d'exécution
| Entrée | Valeur stockée |
|---|---|
| Dépannage seulement | 1 |
| Normal | 2 |
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics] ; Options (en utiliser une seule) ; Dépannage seulement "EnabledExecutionLevel"=dword:00000001 ; Normal "EnabledExecutionLevel"=dword:00000002
CMD
:: Options (en utiliser une seule) :: Dépannage seulement reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics" /v "EnabledExecutionLevel" /t REG_DWORD /d 1 /f :: Normal reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics" /v "EnabledExecutionLevel" /t REG_DWORD /d 2 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Force | Out-Null # Options (en utiliser une seule) # Dépannage seulement New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Name 'EnabledExecutionLevel' -PropertyType DWord -Value 1 -Force | Out-Null # Normal New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Name 'EnabledExecutionLevel' -PropertyType DWord -Value 2 -Force | Out-Null