Configura le finestre di manutenzione per gli aggiornamenti automatici: valore del Registro di sistema MaintenanceWindowEnabled e altri 16ComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate

ID criterio
MaintenanceWindow
Ambito
Configurazione computer
Supportato in
Almeno Windows 11 versione 24H2
Origine
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
Categoria
Componenti di Windows › Windows Update › Gestisci l'esperienza dell'utente finale

Registro

MaintenanceWindowEnabled

REG_DWORDComputer
Valore abilitato
1
Valore disabilitato
0
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; Abilitato
"MaintenanceWindowEnabled"=dword:00000001
; Disabilitato
"MaintenanceWindowEnabled"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Abilitato
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowEnabled" /t REG_DWORD /d 1 /f
:: Disabilitato
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowEnabled" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opzioni (usarne solo una)
# Abilitato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowEnabled' -PropertyType DWord -Value 1 -Force | Out-Null
# Disabilitato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowEnabled' -PropertyType DWord -Value 0 -Force | Out-Null

MaintenanceWindowUpdateActions

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Azioni di aggiornamento consentite solo all'interno della finestra di manutenzione:
Opzioni
VoceValore memorizzato
Scarica, installa e riavvia1
Installa e riavvia2
Riavvia solo3
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; Scarica, installa e riavvia
"MaintenanceWindowUpdateActions"=dword:00000001
; Installa e riavvia
"MaintenanceWindowUpdateActions"=dword:00000002
; Riavvia solo
"MaintenanceWindowUpdateActions"=dword:00000003
CMD
:: Opzioni (usarne solo una)

:: Scarica, installa e riavvia
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowUpdateActions" /t REG_DWORD /d 1 /f
:: Installa e riavvia
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowUpdateActions" /t REG_DWORD /d 2 /f
:: Riavvia solo
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowUpdateActions" /t REG_DWORD /d 3 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opzioni (usarne solo una)
# Scarica, installa e riavvia
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowUpdateActions' -PropertyType DWord -Value 1 -Force | Out-Null
# Installa e riavvia
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowUpdateActions' -PropertyType DWord -Value 2 -Force | Out-Null
# Riavvia solo
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowUpdateActions' -PropertyType DWord -Value 3 -Force | Out-Null

MaintenanceWindowStartDate

REG_SZComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Data di inizio (formato: aaaa-mm-gg esempio: 2025-10-30)
Tipo di valore
REG_SZ
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Nomi e tipi di valore seguono l'ADMX. Sostituisci <inserisci valore> qui sotto con i tuoi dati
"MaintenanceWindowStartDate"="<inserisci valore>"
CMD
:: Nomi e tipi di valore seguono l'ADMX. Sostituisci <inserisci valore> qui sotto con i tuoi dati

reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowStartDate" /t REG_SZ /d "<inserisci valore>" /f
PowerShell
# Nomi e tipi di valore seguono l'ADMX. Sostituisci <inserisci valore> qui sotto con i tuoi dati

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 '<inserisci valore>' -Force | Out-Null

MaintenanceWindowStartTime

REG_SZComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Ora di inizio (formato: hh:mm esempio: 23:30 per le 23:30)
Tipo di valore
REG_SZ
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Nomi e tipi di valore seguono l'ADMX. Sostituisci <inserisci valore> qui sotto con i tuoi dati
"MaintenanceWindowStartTime"="<inserisci valore>"
CMD
:: Nomi e tipi di valore seguono l'ADMX. Sostituisci <inserisci valore> qui sotto con i tuoi dati

reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowStartTime" /t REG_SZ /d "<inserisci valore>" /f
PowerShell
# Nomi e tipi di valore seguono l'ADMX. Sostituisci <inserisci valore> qui sotto con i tuoi dati

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 '<inserisci valore>' -Force | Out-Null

MaintenanceWindowDurationHours

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Durata (ore):
Tipo di valore
REG_DWORD
Obbligatorio
true
Valore minimo
2
Valore massimo
24
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Nomi e tipi di valore seguono l'ADMX. Sostituisci <inserisci valore> qui sotto con i tuoi dati
"MaintenanceWindowDurationHours"=dword:<inserisci valore>
CMD
:: Nomi e tipi di valore seguono l'ADMX. Sostituisci <inserisci valore> qui sotto con i tuoi dati

reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowDurationHours" /t REG_DWORD /d "<inserisci valore>" /f
PowerShell
# Nomi e tipi di valore seguono l'ADMX. Sostituisci <inserisci valore> qui sotto con i tuoi dati

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 '<inserisci valore>' -Force | Out-Null

MaintenanceWindowRepeatScheduleOption

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Seleziona la pianificazione di ripetizione:
Opzioni
VoceValore memorizzato
Nessuna ripetizione1
Ogni giorno2
Ogni settimana3
Ogni mese4
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; Nessuna ripetizione
"MaintenanceWindowRepeatScheduleOption"=dword:00000001
; Ogni giorno
"MaintenanceWindowRepeatScheduleOption"=dword:00000002
; Ogni settimana
"MaintenanceWindowRepeatScheduleOption"=dword:00000003
; Ogni mese
"MaintenanceWindowRepeatScheduleOption"=dword:00000004
CMD
:: Opzioni (usarne solo una)

:: Nessuna ripetizione
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowRepeatScheduleOption" /t REG_DWORD /d 1 /f
:: Ogni giorno
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowRepeatScheduleOption" /t REG_DWORD /d 2 /f
:: Ogni settimana
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowRepeatScheduleOption" /t REG_DWORD /d 3 /f
:: Ogni mese
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowRepeatScheduleOption" /t REG_DWORD /d 4 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opzioni (usarne solo una)
# Nessuna ripetizione
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowRepeatScheduleOption' -PropertyType DWord -Value 1 -Force | Out-Null
# Ogni giorno
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowRepeatScheduleOption' -PropertyType DWord -Value 2 -Force | Out-Null
# Ogni settimana
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowRepeatScheduleOption' -PropertyType DWord -Value 3 -Force | Out-Null
# Ogni mese
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowRepeatScheduleOption' -PropertyType DWord -Value 4 -Force | Out-Null

MaintenanceWindowWeeklySunday

REG_DWORDComputer
Selezionato
1
Non selezionato
0
Elemento
domenica
Tipo di valore
REG_DWORD
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; Selezionato
"MaintenanceWindowWeeklySunday"=dword:00000001
; Non selezionato
"MaintenanceWindowWeeklySunday"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowWeeklySunday" /t REG_DWORD /d 1 /f
:: Non selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowWeeklySunday" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opzioni (usarne solo una)
# Selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowWeeklySunday' -PropertyType DWord -Value 1 -Force | Out-Null
# Non selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowWeeklySunday' -PropertyType DWord -Value 0 -Force | Out-Null

MaintenanceWindowWeeklyMonday

REG_DWORDComputer
Selezionato
1
Non selezionato
0
Elemento
lunedì
Tipo di valore
REG_DWORD
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; Selezionato
"MaintenanceWindowWeeklyMonday"=dword:00000001
; Non selezionato
"MaintenanceWindowWeeklyMonday"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowWeeklyMonday" /t REG_DWORD /d 1 /f
:: Non selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowWeeklyMonday" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opzioni (usarne solo una)
# Selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowWeeklyMonday' -PropertyType DWord -Value 1 -Force | Out-Null
# Non selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowWeeklyMonday' -PropertyType DWord -Value 0 -Force | Out-Null

MaintenanceWindowWeeklyTuesday

REG_DWORDComputer
Selezionato
1
Non selezionato
0
Elemento
martedì
Tipo di valore
REG_DWORD
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; Selezionato
"MaintenanceWindowWeeklyTuesday"=dword:00000001
; Non selezionato
"MaintenanceWindowWeeklyTuesday"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowWeeklyTuesday" /t REG_DWORD /d 1 /f
:: Non selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowWeeklyTuesday" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opzioni (usarne solo una)
# Selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowWeeklyTuesday' -PropertyType DWord -Value 1 -Force | Out-Null
# Non selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowWeeklyTuesday' -PropertyType DWord -Value 0 -Force | Out-Null

MaintenanceWindowWeeklyWednesday

REG_DWORDComputer
Selezionato
1
Non selezionato
0
Elemento
mercoledì
Tipo di valore
REG_DWORD
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; Selezionato
"MaintenanceWindowWeeklyWednesday"=dword:00000001
; Non selezionato
"MaintenanceWindowWeeklyWednesday"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowWeeklyWednesday" /t REG_DWORD /d 1 /f
:: Non selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowWeeklyWednesday" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opzioni (usarne solo una)
# Selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowWeeklyWednesday' -PropertyType DWord -Value 1 -Force | Out-Null
# Non selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowWeeklyWednesday' -PropertyType DWord -Value 0 -Force | Out-Null

MaintenanceWindowWeeklyThursday

REG_DWORDComputer
Selezionato
1
Non selezionato
0
Elemento
giovedì
Tipo di valore
REG_DWORD
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; Selezionato
"MaintenanceWindowWeeklyThursday"=dword:00000001
; Non selezionato
"MaintenanceWindowWeeklyThursday"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowWeeklyThursday" /t REG_DWORD /d 1 /f
:: Non selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowWeeklyThursday" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opzioni (usarne solo una)
# Selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowWeeklyThursday' -PropertyType DWord -Value 1 -Force | Out-Null
# Non selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowWeeklyThursday' -PropertyType DWord -Value 0 -Force | Out-Null

MaintenanceWindowWeeklyFriday

REG_DWORDComputer
Selezionato
1
Non selezionato
0
Elemento
venerdì
Tipo di valore
REG_DWORD
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; Selezionato
"MaintenanceWindowWeeklyFriday"=dword:00000001
; Non selezionato
"MaintenanceWindowWeeklyFriday"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowWeeklyFriday" /t REG_DWORD /d 1 /f
:: Non selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowWeeklyFriday" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opzioni (usarne solo una)
# Selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowWeeklyFriday' -PropertyType DWord -Value 1 -Force | Out-Null
# Non selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowWeeklyFriday' -PropertyType DWord -Value 0 -Force | Out-Null

MaintenanceWindowWeeklySaturday

REG_DWORDComputer
Selezionato
1
Non selezionato
0
Elemento
sabato
Tipo di valore
REG_DWORD
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; Selezionato
"MaintenanceWindowWeeklySaturday"=dword:00000001
; Non selezionato
"MaintenanceWindowWeeklySaturday"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowWeeklySaturday" /t REG_DWORD /d 1 /f
:: Non selezionato
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowWeeklySaturday" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opzioni (usarne solo una)
# Selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowWeeklySaturday' -PropertyType DWord -Value 1 -Force | Out-Null
# Non selezionato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowWeeklySaturday' -PropertyType DWord -Value 0 -Force | Out-Null

MaintenanceWindowMonthlySchedule

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Tipo di pianificazione mensile:
Opzioni
VoceValore memorizzato
In base alla data1
Basato su settimana2
Ultimo giorno del mese3
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; In base alla data
"MaintenanceWindowMonthlySchedule"=dword:00000001
; Basato su settimana
"MaintenanceWindowMonthlySchedule"=dword:00000002
; Ultimo giorno del mese
"MaintenanceWindowMonthlySchedule"=dword:00000003
CMD
:: Opzioni (usarne solo una)

:: In base alla data
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlySchedule" /t REG_DWORD /d 1 /f
:: Basato su settimana
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlySchedule" /t REG_DWORD /d 2 /f
:: Ultimo giorno del mese
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlySchedule" /t REG_DWORD /d 3 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opzioni (usarne solo una)
# In base alla data
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlySchedule' -PropertyType DWord -Value 1 -Force | Out-Null
# Basato su settimana
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlySchedule' -PropertyType DWord -Value 2 -Force | Out-Null
# Ultimo giorno del mese
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlySchedule' -PropertyType DWord -Value 3 -Force | Out-Null

MaintenanceWindowMonthlyMonthBasedDayOfMonth

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Giorno del mese:
Tipo di valore
REG_DWORD
Obbligatorio
true
Valore minimo
1
Valore massimo
28
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Nomi e tipi di valore seguono l'ADMX. Sostituisci <inserisci valore> qui sotto con i tuoi dati
"MaintenanceWindowMonthlyMonthBasedDayOfMonth"=dword:<inserisci valore>
CMD
:: Nomi e tipi di valore seguono l'ADMX. Sostituisci <inserisci valore> qui sotto con i tuoi dati

reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyMonthBasedDayOfMonth" /t REG_DWORD /d "<inserisci valore>" /f
PowerShell
# Nomi e tipi di valore seguono l'ADMX. Sostituisci <inserisci valore> qui sotto con i tuoi dati

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 '<inserisci valore>' -Force | Out-Null

MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Occorrenza nel mese
Opzioni
VoceValore memorizzato
First1
Secondo2
Third3
Fourth4
Ultimo5
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; First
"MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth"=dword:00000001
; Secondo
"MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth"=dword:00000002
; Third
"MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth"=dword:00000003
; Fourth
"MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth"=dword:00000004
; Ultimo
"MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth"=dword:00000005
CMD
:: Opzioni (usarne solo una)

:: First
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth" /t REG_DWORD /d 1 /f
:: Secondo
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth" /t REG_DWORD /d 2 /f
:: Third
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth" /t REG_DWORD /d 3 /f
:: Fourth
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth" /t REG_DWORD /d 4 /f
:: Ultimo
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth" /t REG_DWORD /d 5 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opzioni (usarne solo una)
# First
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth' -PropertyType DWord -Value 1 -Force | Out-Null
# Secondo
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth' -PropertyType DWord -Value 2 -Force | Out-Null
# Third
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth' -PropertyType DWord -Value 3 -Force | Out-Null
# Fourth
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth' -PropertyType DWord -Value 4 -Force | Out-Null
# Ultimo
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedOccurrenceInMonth' -PropertyType DWord -Value 5 -Force | Out-Null

MaintenanceWindowMonthlyWeekBasedDayOfTheWeek

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Giorno della settimana
Opzioni
VoceValore memorizzato
domenica1
lunedì2
martedì3
mercoledì4
giovedì5
venerdì6
sabato7
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; domenica
"MaintenanceWindowMonthlyWeekBasedDayOfTheWeek"=dword:00000001
; lunedì
"MaintenanceWindowMonthlyWeekBasedDayOfTheWeek"=dword:00000002
; martedì
"MaintenanceWindowMonthlyWeekBasedDayOfTheWeek"=dword:00000003
; mercoledì
"MaintenanceWindowMonthlyWeekBasedDayOfTheWeek"=dword:00000004
; giovedì
"MaintenanceWindowMonthlyWeekBasedDayOfTheWeek"=dword:00000005
; venerdì
"MaintenanceWindowMonthlyWeekBasedDayOfTheWeek"=dword:00000006
; sabato
"MaintenanceWindowMonthlyWeekBasedDayOfTheWeek"=dword:00000007
CMD
:: Opzioni (usarne solo una)

:: domenica
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedDayOfTheWeek" /t REG_DWORD /d 1 /f
:: lunedì
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedDayOfTheWeek" /t REG_DWORD /d 2 /f
:: martedì
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedDayOfTheWeek" /t REG_DWORD /d 3 /f
:: mercoledì
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedDayOfTheWeek" /t REG_DWORD /d 4 /f
:: giovedì
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedDayOfTheWeek" /t REG_DWORD /d 5 /f
:: venerdì
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedDayOfTheWeek" /t REG_DWORD /d 6 /f
:: sabato
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "MaintenanceWindowMonthlyWeekBasedDayOfTheWeek" /t REG_DWORD /d 7 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opzioni (usarne solo una)
# domenica
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedDayOfTheWeek' -PropertyType DWord -Value 1 -Force | Out-Null
# lunedì
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedDayOfTheWeek' -PropertyType DWord -Value 2 -Force | Out-Null
# martedì
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedDayOfTheWeek' -PropertyType DWord -Value 3 -Force | Out-Null
# mercoledì
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedDayOfTheWeek' -PropertyType DWord -Value 4 -Force | Out-Null
# giovedì
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedDayOfTheWeek' -PropertyType DWord -Value 5 -Force | Out-Null
# venerdì
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedDayOfTheWeek' -PropertyType DWord -Value 6 -Force | Out-Null
# sabato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'MaintenanceWindowMonthlyWeekBasedDayOfTheWeek' -PropertyType DWord -Value 7 -Force | Out-Null