Optionele updates inschakelen: registerwaarde SetAllowOptionalContent en 1 meerComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate

Beleids-ID
AllowOptionalContent
Bereik
Computerconfiguratie
Ondersteund op
Minimaal Windows Server 2025, Windows 10 versie 21H2 of Windows 11 versie 22H2
Bron
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versie 1.0)
Categorie
Windows-onderdelen › Windows Update › Updates beheren die worden aangeboden vanuit Windows Update

Register

SetAllowOptionalContent

REG_DWORDComputer
Waarde bij ingeschakeld
1
Waarde bij uitgeschakeld
0
Toepassen met .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate]

; Opties (gebruik er maar één)
; Ingeschakeld
"SetAllowOptionalContent"=dword:00000001
; Uitgeschakeld
"SetAllowOptionalContent"=dword:00000000
CMD
:: Opties (gebruik er maar één)

:: Ingeschakeld
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "SetAllowOptionalContent" /t REG_DWORD /d 1 /f
:: Uitgeschakeld
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "SetAllowOptionalContent" /t REG_DWORD /d 0 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opties (gebruik er maar één)
# Ingeschakeld
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'SetAllowOptionalContent' -PropertyType DWord -Value 1 -Force | Out-Null
# Uitgeschakeld
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'SetAllowOptionalContent' -PropertyType DWord -Value 0 -Force | Out-Null

AllowOptionalContent

REG_DWORDComputer
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
Selecteer hoe gebruikers optionele updates ontvangen:
Opties
ItemOpgeslagen waarde
Automatisch optionele updates ontvangen (inclusief CFR's)1
Automatisch optionele updates ontvangen2
Gebruikers kunnen selecteren welke optionele updates moeten worden ontvangen3
Toepassen met .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate]

; Opties (gebruik er maar één)
; Automatisch optionele updates ontvangen (inclusief CFR's)
"AllowOptionalContent"=dword:00000001
; Automatisch optionele updates ontvangen
"AllowOptionalContent"=dword:00000002
; Gebruikers kunnen selecteren welke optionele updates moeten worden ontvangen
"AllowOptionalContent"=dword:00000003
CMD
:: Opties (gebruik er maar één)

:: Automatisch optionele updates ontvangen (inclusief CFR's)
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AllowOptionalContent" /t REG_DWORD /d 1 /f
:: Automatisch optionele updates ontvangen
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AllowOptionalContent" /t REG_DWORD /d 2 /f
:: Gebruikers kunnen selecteren welke optionele updates moeten worden ontvangen
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AllowOptionalContent" /t REG_DWORD /d 3 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opties (gebruik er maar één)
# Automatisch optionele updates ontvangen (inclusief CFR's)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AllowOptionalContent' -PropertyType DWord -Value 1 -Force | Out-Null
# Automatisch optionele updates ontvangen
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AllowOptionalContent' -PropertyType DWord -Value 2 -Force | Out-Null
# Gebruikers kunnen selecteren welke optionele updates moeten worden ontvangen
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AllowOptionalContent' -PropertyType DWord -Value 3 -Force | Out-Null