Especificar o intervalo de horas ativas para reinícios automáticos: valor do Registro SetActiveHoursMaxRange e mais 1ComputadorHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate
- ID da política
- ActiveHoursMaxRange
- Escopo
- Configuração do Computador
- Compatível com
- Windows Server 2016 ou Windows 10 ou posterior
- Fonte
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
- Categoria
- Componentes do Windows › Windows Update › Gerenciar a experiência do usuário final
Registro
SetActiveHoursMaxRange
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\WindowsUpdate] ; Opções (use apenas uma) ; Habilitada "SetActiveHoursMaxRange"=dword:00000001 ; Desabilitada "SetActiveHoursMaxRange"=dword:00000000
CMD
:: Opções (use apenas uma) :: Habilitada reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "SetActiveHoursMaxRange" /t REG_DWORD /d 1 /f :: Desabilitada reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "SetActiveHoursMaxRange" /t REG_DWORD /d 0 /f
PowerShell
# Comum: criar a chave New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null # Opções (use apenas uma) # Habilitada New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'SetActiveHoursMaxRange' -PropertyType DWord -Value 1 -Force | Out-Null # Desabilitada New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'SetActiveHoursMaxRange' -PropertyType DWord -Value 0 -Force | Out-Null
ActiveHoursMaxRange
REG_DWORDComputador- Valor habilitado
- Depende do valor da opção
- Elemento
- Intervalo máximo:
| Item | Valor armazenado |
|---|---|
| 8 | 8 |
| 9 | 9 |
| 10 | 10 |
| 11 | 11 |
| 12 | 12 |
| 13 | 13 |
| 14 | 14 |
| 15 | 15 |
| 16 | 16 |
| 17 | 17 |
| 18 | 18 |
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate] ; Opções (use apenas uma) ; 8 "ActiveHoursMaxRange"=dword:00000008 ; 9 "ActiveHoursMaxRange"=dword:00000009 ; 10 "ActiveHoursMaxRange"=dword:0000000a ; 11 "ActiveHoursMaxRange"=dword:0000000b ; 12 "ActiveHoursMaxRange"=dword:0000000c ; 13 "ActiveHoursMaxRange"=dword:0000000d ; 14 "ActiveHoursMaxRange"=dword:0000000e ; 15 "ActiveHoursMaxRange"=dword:0000000f ; 16 "ActiveHoursMaxRange"=dword:00000010 ; 17 "ActiveHoursMaxRange"=dword:00000011 ; 18 "ActiveHoursMaxRange"=dword:00000012
CMD
:: Opções (use apenas uma) :: 8 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursMaxRange" /t REG_DWORD /d 8 /f :: 9 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursMaxRange" /t REG_DWORD /d 9 /f :: 10 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursMaxRange" /t REG_DWORD /d 10 /f :: 11 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursMaxRange" /t REG_DWORD /d 11 /f :: 12 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursMaxRange" /t REG_DWORD /d 12 /f :: 13 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursMaxRange" /t REG_DWORD /d 13 /f :: 14 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursMaxRange" /t REG_DWORD /d 14 /f :: 15 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursMaxRange" /t REG_DWORD /d 15 /f :: 16 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursMaxRange" /t REG_DWORD /d 16 /f :: 17 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursMaxRange" /t REG_DWORD /d 17 /f :: 18 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursMaxRange" /t REG_DWORD /d 18 /f
PowerShell
# Comum: criar a chave New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null # Opções (use apenas uma) # 8 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursMaxRange' -PropertyType DWord -Value 8 -Force | Out-Null # 9 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursMaxRange' -PropertyType DWord -Value 9 -Force | Out-Null # 10 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursMaxRange' -PropertyType DWord -Value 10 -Force | Out-Null # 11 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursMaxRange' -PropertyType DWord -Value 11 -Force | Out-Null # 12 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursMaxRange' -PropertyType DWord -Value 12 -Force | Out-Null # 13 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursMaxRange' -PropertyType DWord -Value 13 -Force | Out-Null # 14 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursMaxRange' -PropertyType DWord -Value 14 -Force | Out-Null # 15 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursMaxRange' -PropertyType DWord -Value 15 -Force | Out-Null # 16 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursMaxRange' -PropertyType DWord -Value 16 -Force | Out-Null # 17 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursMaxRange' -PropertyType DWord -Value 17 -Force | Out-Null # 18 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursMaxRange' -PropertyType DWord -Value 18 -Force | Out-Null