Configurar Comportamento de Manutenção Programada: valor do Registro EnabledExecution e mais 1ComputadorHKLM\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics

ID da política
ScheduledDiagnosticsExecutionPolicy
Escopo
Configuração do Computador
Compatível com
Windows Server 2008 R2 ou Windows 7
Fonte
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
Categoria
Sistema › Solução de Problemas e Diagnóstico › Manutenção Programada

Registro

EnabledExecution

REG_DWORDComputador
Valor habilitado
1
Valor desabilitado
0
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opções (use apenas uma)
; Habilitada
"EnabledExecution"=dword:00000001
; Desabilitada
"EnabledExecution"=dword:00000000
CMD
:: Opções (use apenas uma)

:: Habilitada
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics" /v "EnabledExecution" /t REG_DWORD /d 1 /f
:: Desabilitada
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics" /v "EnabledExecution" /t REG_DWORD /d 0 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Force | Out-Null

# Opções (use apenas uma)
# Habilitada
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Name 'EnabledExecution' -PropertyType DWord -Value 1 -Force | Out-Null
# Desabilitada
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Name 'EnabledExecution' -PropertyType DWord -Value 0 -Force | Out-Null

EnabledExecutionLevel

REG_DWORDComputador
Valor habilitado
Depende do valor da opção
Elemento
Nível de Execução
Opções
ItemValor armazenado
Somente Solução de Problemas1
Regular2
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opções (use apenas uma)
; Somente Solução de Problemas
"EnabledExecutionLevel"=dword:00000001
; Regular
"EnabledExecutionLevel"=dword:00000002
CMD
:: Opções (use apenas uma)

:: Somente Solução de Problemas
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics" /v "EnabledExecutionLevel" /t REG_DWORD /d 1 /f
:: Regular
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics" /v "EnabledExecutionLevel" /t REG_DWORD /d 2 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Force | Out-Null

# Opções (use apenas uma)
# Somente Solução de Problemas
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Name 'EnabledExecutionLevel' -PropertyType DWord -Value 1 -Force | Out-Null
# Regular
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics' -Name 'EnabledExecutionLevel' -PropertyType DWord -Value 2 -Force | Out-Null