Onderhoudsvensters configureren voor automatische updates: registerwaarde MaintenanceWindowEnabled en 16 meerComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate

Beleids-ID
MaintenanceWindow
Bereik
Computerconfiguratie
Ondersteund op
Minimaal Windows 11 versie 24H2
Bron
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versie 1.0)
Categorie
Windows-onderdelen › Windows Update › Eindgebruikerservaring beheren

Register

MaintenanceWindowEnabled

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
"MaintenanceWindowEnabled"=dword:00000001
; Uitgeschakeld
"MaintenanceWindowEnabled"=dword:00000000
CMD
:: Opties (gebruik er maar één)

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

MaintenanceWindowUpdateActions

REG_DWORDComputer
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
Updateacties zijn alleen toegestaan binnen het onderhoudsvenster:
Opties
ItemOpgeslagen waarde
Downloaden, installeren en opnieuw opstarten1
Installeren en opnieuw opstarten2
Alleen opnieuw opstarten3
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)
; Downloaden, installeren en opnieuw opstarten
"MaintenanceWindowUpdateActions"=dword:00000001
; Installeren en opnieuw opstarten
"MaintenanceWindowUpdateActions"=dword:00000002
; Alleen opnieuw opstarten
"MaintenanceWindowUpdateActions"=dword:00000003
CMD
:: Opties (gebruik er maar één)

:: Downloaden, installeren en opnieuw opstarten
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowUpdateActions" /t REG_DWORD /d 1 /f
:: Installeren en opnieuw opstarten
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowUpdateActions" /t REG_DWORD /d 2 /f
:: Alleen opnieuw opstarten
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowUpdateActions" /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)
# Downloaden, installeren en opnieuw opstarten
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowUpdateActions' -PropertyType DWord -Value 1 -Force | Out-Null
# Installeren en opnieuw opstarten
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowUpdateActions' -PropertyType DWord -Value 2 -Force | Out-Null
# Alleen opnieuw opstarten
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowUpdateActions' -PropertyType DWord -Value 3 -Force | Out-Null

MaintenanceWindowStartDate

REG_SZComputer
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
Begindatum (notatie: jjjj-mm-dd, voorbeeld: 2025-10-30)
Waardetype
REG_SZ
Toepassen met .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Waardenamen en typen volgen de ADMX. Vervang <waarde invoeren> hieronder door uw eigen gegevens
"MaintenanceWindowStartDate"="<waarde invoeren>"
CMD
:: Waardenamen en typen volgen de ADMX. Vervang <waarde invoeren> hieronder door uw eigen gegevens

reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowStartDate" /t REG_SZ /d "<waarde invoeren>" /f
PowerShell
# Waardenamen en typen volgen de ADMX. Vervang <waarde invoeren> hieronder door uw eigen gegevens

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowStartDate' -PropertyType String -Value '<waarde invoeren>' -Force | Out-Null

MaintenanceWindowStartTime

REG_SZComputer
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
Begintijd (notatie: uu:mm, voorbeeld: 23:30)
Waardetype
REG_SZ
Toepassen met .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Waardenamen en typen volgen de ADMX. Vervang <waarde invoeren> hieronder door uw eigen gegevens
"MaintenanceWindowStartTime"="<waarde invoeren>"
CMD
:: Waardenamen en typen volgen de ADMX. Vervang <waarde invoeren> hieronder door uw eigen gegevens

reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowStartTime" /t REG_SZ /d "<waarde invoeren>" /f
PowerShell
# Waardenamen en typen volgen de ADMX. Vervang <waarde invoeren> hieronder door uw eigen gegevens

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowStartTime' -PropertyType String -Value '<waarde invoeren>' -Force | Out-Null

MaintenanceWindowDurationHours

REG_DWORDComputer
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
Duur (in uren):
Waardetype
REG_DWORD
Vereist
true
Minimumwaarde
2
Maximumwaarde
24
Toepassen met .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Waardenamen en typen volgen de ADMX. Vervang <waarde invoeren> hieronder door uw eigen gegevens
"MaintenanceWindowDurationHours"=dword:<waarde invoeren>
CMD
:: Waardenamen en typen volgen de ADMX. Vervang <waarde invoeren> hieronder door uw eigen gegevens

reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowDurationHours" /t REG_DWORD /d "<waarde invoeren>" /f
PowerShell
# Waardenamen en typen volgen de ADMX. Vervang <waarde invoeren> hieronder door uw eigen gegevens

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowDurationHours' -PropertyType DWord -Value '<waarde invoeren>' -Force | Out-Null

MaintenanceWindowRepeatScheduleOption

REG_DWORDComputer
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
Selecteer een herhalingsschema:
Opties
ItemOpgeslagen waarde
Niet herhalen1
Dagelijks2
Wekelijks3
Maandelijks4
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)
; Niet herhalen
"MaintenanceWindowRepeatScheduleOption"=dword:00000001
; Dagelijks
"MaintenanceWindowRepeatScheduleOption"=dword:00000002
; Wekelijks
"MaintenanceWindowRepeatScheduleOption"=dword:00000003
; Maandelijks
"MaintenanceWindowRepeatScheduleOption"=dword:00000004
CMD
:: Opties (gebruik er maar één)

:: Niet herhalen
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowRepeatScheduleOption" /t REG_DWORD /d 1 /f
:: Dagelijks
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowRepeatScheduleOption" /t REG_DWORD /d 2 /f
:: Wekelijks
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowRepeatScheduleOption" /t REG_DWORD /d 3 /f
:: Maandelijks
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowRepeatScheduleOption" /t REG_DWORD /d 4 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opties (gebruik er maar één)
# Niet herhalen
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowRepeatScheduleOption' -PropertyType DWord -Value 1 -Force | Out-Null
# Dagelijks
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowRepeatScheduleOption' -PropertyType DWord -Value 2 -Force | Out-Null
# Wekelijks
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowRepeatScheduleOption' -PropertyType DWord -Value 3 -Force | Out-Null
# Maandelijks
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowRepeatScheduleOption' -PropertyType DWord -Value 4 -Force | Out-Null

MaintenanceWindowWeeklySunday

REG_DWORDComputer
Aangevinkt
1
Niet aangevinkt
0
Element
zondag
Waardetype
REG_DWORD
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)
; Aangevinkt
"MaintenanceWindowWeeklySunday"=dword:00000001
; Niet aangevinkt
"MaintenanceWindowWeeklySunday"=dword:00000000
CMD
:: Opties (gebruik er maar één)

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

MaintenanceWindowWeeklyMonday

REG_DWORDComputer
Aangevinkt
1
Niet aangevinkt
0
Element
maandag
Waardetype
REG_DWORD
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)
; Aangevinkt
"MaintenanceWindowWeeklyMonday"=dword:00000001
; Niet aangevinkt
"MaintenanceWindowWeeklyMonday"=dword:00000000
CMD
:: Opties (gebruik er maar één)

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

MaintenanceWindowWeeklyTuesday

REG_DWORDComputer
Aangevinkt
1
Niet aangevinkt
0
Element
dinsdag
Waardetype
REG_DWORD
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)
; Aangevinkt
"MaintenanceWindowWeeklyTuesday"=dword:00000001
; Niet aangevinkt
"MaintenanceWindowWeeklyTuesday"=dword:00000000
CMD
:: Opties (gebruik er maar één)

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

MaintenanceWindowWeeklyWednesday

REG_DWORDComputer
Aangevinkt
1
Niet aangevinkt
0
Element
woensdag
Waardetype
REG_DWORD
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)
; Aangevinkt
"MaintenanceWindowWeeklyWednesday"=dword:00000001
; Niet aangevinkt
"MaintenanceWindowWeeklyWednesday"=dword:00000000
CMD
:: Opties (gebruik er maar één)

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

MaintenanceWindowWeeklyThursday

REG_DWORDComputer
Aangevinkt
1
Niet aangevinkt
0
Element
donderdag
Waardetype
REG_DWORD
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)
; Aangevinkt
"MaintenanceWindowWeeklyThursday"=dword:00000001
; Niet aangevinkt
"MaintenanceWindowWeeklyThursday"=dword:00000000
CMD
:: Opties (gebruik er maar één)

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

MaintenanceWindowWeeklyFriday

REG_DWORDComputer
Aangevinkt
1
Niet aangevinkt
0
Element
vrijdag
Waardetype
REG_DWORD
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)
; Aangevinkt
"MaintenanceWindowWeeklyFriday"=dword:00000001
; Niet aangevinkt
"MaintenanceWindowWeeklyFriday"=dword:00000000
CMD
:: Opties (gebruik er maar één)

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

MaintenanceWindowWeeklySaturday

REG_DWORDComputer
Aangevinkt
1
Niet aangevinkt
0
Element
zaterdag
Waardetype
REG_DWORD
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)
; Aangevinkt
"MaintenanceWindowWeeklySaturday"=dword:00000001
; Niet aangevinkt
"MaintenanceWindowWeeklySaturday"=dword:00000000
CMD
:: Opties (gebruik er maar één)

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

MaintenanceWindowMonthlySchedule

REG_DWORDComputer
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
- Type maandelijks schema:
Opties
ItemOpgeslagen waarde
Datumgebaseerd1
Op weekbasis2
Laatste dag van de maand3
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)
; Datumgebaseerd
"MaintenanceWindowMonthlySchedule"=dword:00000001
; Op weekbasis
"MaintenanceWindowMonthlySchedule"=dword:00000002
; Laatste dag van de maand
"MaintenanceWindowMonthlySchedule"=dword:00000003
CMD
:: Opties (gebruik er maar één)

:: Datumgebaseerd
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlySchedule" /t REG_DWORD /d 1 /f
:: Op weekbasis
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlySchedule" /t REG_DWORD /d 2 /f
:: Laatste dag van de maand
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlySchedule" /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)
# Datumgebaseerd
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlySchedule' -PropertyType DWord -Value 1 -Force | Out-Null
# Op weekbasis
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlySchedule' -PropertyType DWord -Value 2 -Force | Out-Null
# Laatste dag van de maand
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlySchedule' -PropertyType DWord -Value 3 -Force | Out-Null

MaintenanceWindowMonthlyMonthBasedDayOfMonth

REG_DWORDComputer
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
Dag van de maand:
Waardetype
REG_DWORD
Vereist
true
Minimumwaarde
1
Maximumwaarde
28
Toepassen met .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Waardenamen en typen volgen de ADMX. Vervang <waarde invoeren> hieronder door uw eigen gegevens
"MaintenanceWindowMonthlyMonthBasedDayOfMonth"=dword:<waarde invoeren>
CMD
:: Waardenamen en typen volgen de ADMX. Vervang <waarde invoeren> hieronder door uw eigen gegevens

reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyMonthBasedDayOfMonth" /t REG_DWORD /d "<waarde invoeren>" /f
PowerShell
# Waardenamen en typen volgen de ADMX. Vervang <waarde invoeren> hieronder door uw eigen gegevens

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyMonthBasedDayOfMonth' -PropertyType DWord -Value '<waarde invoeren>' -Force | Out-Null

MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth

REG_DWORDComputer
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
Gevallen per maand
Opties
ItemOpgeslagen waarde
Eerste1
Seconde2
Derde3
Vierde4
Laatste5
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)
; Eerste
"MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth"=dword:00000001
; Seconde
"MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth"=dword:00000002
; Derde
"MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth"=dword:00000003
; Vierde
"MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth"=dword:00000004
; Laatste
"MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth"=dword:00000005
CMD
:: Opties (gebruik er maar één)

:: Eerste
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth" /t REG_DWORD /d 1 /f
:: Seconde
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth" /t REG_DWORD /d 2 /f
:: Derde
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth" /t REG_DWORD /d 3 /f
:: Vierde
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth" /t REG_DWORD /d 4 /f
:: Laatste
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth" /t REG_DWORD /d 5 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opties (gebruik er maar één)
# Eerste
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth' -PropertyType DWord -Value 1 -Force | Out-Null
# Seconde
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth' -PropertyType DWord -Value 2 -Force | Out-Null
# Derde
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth' -PropertyType DWord -Value 3 -Force | Out-Null
# Vierde
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth' -PropertyType DWord -Value 4 -Force | Out-Null
# Laatste
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth' -PropertyType DWord -Value 5 -Force | Out-Null

MaintenanceWindowMonthlyWeekBasedDayOfTheWeek

REG_DWORDComputer
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
Dag van de week
Opties
ItemOpgeslagen waarde
zondag1
maandag2
dinsdag3
woensdag4
donderdag5
vrijdag6
zaterdag7
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)
; zondag
"MaintenanceWindowMonthlyWeekBasedDayOfTheWeek"=dword:00000001
; maandag
"MaintenanceWindowMonthlyWeekBasedDayOfTheWeek"=dword:00000002
; dinsdag
"MaintenanceWindowMonthlyWeekBasedDayOfTheWeek"=dword:00000003
; woensdag
"MaintenanceWindowMonthlyWeekBasedDayOfTheWeek"=dword:00000004
; donderdag
"MaintenanceWindowMonthlyWeekBasedDayOfTheWeek"=dword:00000005
; vrijdag
"MaintenanceWindowMonthlyWeekBasedDayOfTheWeek"=dword:00000006
; zaterdag
"MaintenanceWindowMonthlyWeekBasedDayOfTheWeek"=dword:00000007
CMD
:: Opties (gebruik er maar één)

:: zondag
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedDayOfTheWeek" /t REG_DWORD /d 1 /f
:: maandag
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedDayOfTheWeek" /t REG_DWORD /d 2 /f
:: dinsdag
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedDayOfTheWeek" /t REG_DWORD /d 3 /f
:: woensdag
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedDayOfTheWeek" /t REG_DWORD /d 4 /f
:: donderdag
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedDayOfTheWeek" /t REG_DWORD /d 5 /f
:: vrijdag
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedDayOfTheWeek" /t REG_DWORD /d 6 /f
:: zaterdag
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedDayOfTheWeek" /t REG_DWORD /d 7 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opties (gebruik er maar één)
# zondag
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedDayOfTheWeek' -PropertyType DWord -Value 1 -Force | Out-Null
# maandag
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedDayOfTheWeek' -PropertyType DWord -Value 2 -Force | Out-Null
# dinsdag
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedDayOfTheWeek' -PropertyType DWord -Value 3 -Force | Out-Null
# woensdag
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedDayOfTheWeek' -PropertyType DWord -Value 4 -Force | Out-Null
# donderdag
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedDayOfTheWeek' -PropertyType DWord -Value 5 -Force | Out-Null
# vrijdag
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedDayOfTheWeek' -PropertyType DWord -Value 6 -Force | Out-Null
# zaterdag
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedDayOfTheWeek' -PropertyType DWord -Value 7 -Force | Out-Null