Configura comportamento di manutenzione pianificata: valore del Registro di sistema EnabledExecution e altri 1ComputerHKLM\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics

ID criterio
ScheduledDiagnosticsExecutionPolicy
Ambito
Configurazione computer
Supportato in
Almeno Windows Server 2008 R2 o Windows 7
Origine
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
Categoria
Sistema › Risoluzione dei problemi e diagnostica › Manutenzione pianificata

Registro

EnabledExecution

REG_DWORDComputer
Valore abilitato
1
Valore disabilitato
0
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics]

; Opzioni (usarne solo una)
; Abilitato
"EnabledExecution"=dword:00000001
; Disabilitato
"EnabledExecution"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Abilitato
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics" /v "EnabledExecution" /t REG_DWORD /d 1 /f
:: Disabilitato
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics" /v "EnabledExecution" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Force | Out-Null

# Opzioni (usarne solo una)
# Abilitato
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Name 'EnabledExecution' -PropertyType DWord -Value 1 -Force | Out-Null
# Disabilitato
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Name 'EnabledExecution' -PropertyType DWord -Value 0 -Force | Out-Null

EnabledExecutionLevel

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Livello di esecuzione
Opzioni
VoceValore memorizzato
Solo risoluzione dei problemi1
Normale2
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics]

; Opzioni (usarne solo una)
; Solo risoluzione dei problemi
"EnabledExecutionLevel"=dword:00000001
; Normale
"EnabledExecutionLevel"=dword:00000002
CMD
:: Opzioni (usarne solo una)

:: Solo risoluzione dei problemi
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics" /v "EnabledExecutionLevel" /t REG_DWORD /d 1 /f
:: Normale
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics" /v "EnabledExecutionLevel" /t REG_DWORD /d 2 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Force | Out-Null

# Opzioni (usarne solo una)
# Solo risoluzione dei problemi
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Name 'EnabledExecutionLevel' -PropertyType DWord -Value 1 -Force | Out-Null
# Normale
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Name 'EnabledExecutionLevel' -PropertyType DWord -Value 2 -Force | Out-Null