Habilitar atualizações opcionais: valor do Registro SetAllowOptionalContent e mais 1ComputadorHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate

ID da política
AllowOptionalContent
Escopo
Configuração do Computador
Compatível com
No mínimo Windows Server 2025, Windows 10 Versão 21H2 ou Windows 11 Versão 22H2
Fonte
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
Categoria
Componentes do Windows › Windows Update › Gerenciar atualizações oferecidas do Windows Update

Registro

SetAllowOptionalContent

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
"SetAllowOptionalContent"=dword:00000001
; Desabilitada
"SetAllowOptionalContent"=dword:00000000
CMD
:: Opções (use apenas uma)

:: Habilitada
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "SetAllowOptionalContent" /t REG_DWORD /d 1 /f
:: Desabilitada
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "SetAllowOptionalContent" /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 'SetAllowOptionalContent' -PropertyType DWord -Value 1 -Force | Out-Null
# Desabilitada
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'SetAllowOptionalContent' -PropertyType DWord -Value 0 -Force | Out-Null

AllowOptionalContent

REG_DWORDComputador
Valor habilitado
Depende do valor da opção
Elemento
Selecione como os usuários recebem atualizações opcionais:
Opções
ItemValor armazenado
Receber automaticamente atualizações opcionais (incluindo CFRs)1
Receber atualizações opcionais automaticamente2
Os usuários podem selecionar quais atualizações opcionais receber3
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)
; Receber automaticamente atualizações opcionais (incluindo CFRs)
"AllowOptionalContent"=dword:00000001
; Receber atualizações opcionais automaticamente
"AllowOptionalContent"=dword:00000002
; Os usuários podem selecionar quais atualizações opcionais receber
"AllowOptionalContent"=dword:00000003
CMD
:: Opções (use apenas uma)

:: Receber automaticamente atualizações opcionais (incluindo CFRs)
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AllowOptionalContent" /t REG_DWORD /d 1 /f
:: Receber atualizações opcionais automaticamente
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AllowOptionalContent" /t REG_DWORD /d 2 /f
:: Os usuários podem selecionar quais atualizações opcionais receber
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AllowOptionalContent" /t REG_DWORD /d 3 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opções (use apenas uma)
# Receber automaticamente atualizações opcionais (incluindo CFRs)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AllowOptionalContent' -PropertyType DWord -Value 1 -Force | Out-Null
# Receber atualizações opcionais automaticamente
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AllowOptionalContent' -PropertyType DWord -Value 2 -Force | Out-Null
# Os usuários podem selecionar quais atualizações opcionais receber
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AllowOptionalContent' -PropertyType DWord -Value 3 -Force | Out-Null