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_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Chiave corrente
- 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_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Chiave corrente
- Valore abilitato
- Dipende dal valore dell'opzione
- Elemento
- Azioni di aggiornamento consentite solo all'interno della finestra di manutenzione:
| Voce | Valore memorizzato |
|---|---|
| Scarica, installa e riavvia | 1 |
| Installa e riavvia | 2 |
| Riavvia solo | 3 |
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_SZComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Chiave corrente
- 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_SZComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Chiave corrente
- 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_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Chiave corrente
- 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_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Chiave corrente
- Valore abilitato
- Dipende dal valore dell'opzione
- Elemento
- Seleziona la pianificazione di ripetizione:
| Voce | Valore memorizzato |
|---|---|
| Nessuna ripetizione | 1 |
| Ogni giorno | 2 |
| Ogni settimana | 3 |
| Ogni mese | 4 |
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_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Chiave corrente
- 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_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Chiave corrente
- 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_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Chiave corrente
- 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_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Chiave corrente
- 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_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Chiave corrente
- 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_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Chiave corrente
- 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_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Chiave corrente
- 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_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Chiave corrente
- Valore abilitato
- Dipende dal valore dell'opzione
- Elemento
- Tipo di pianificazione mensile:
| Voce | Valore memorizzato |
|---|---|
| In base alla data | 1 |
| Basato su settimana | 2 |
| Ultimo giorno del mese | 3 |
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_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Chiave corrente
- 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_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Chiave corrente
- Valore abilitato
- Dipende dal valore dell'opzione
- Elemento
- Occorrenza nel mese
| Voce | Valore memorizzato |
|---|---|
| First | 1 |
| Secondo | 2 |
| Third | 3 |
| Fourth | 4 |
| Ultimo | 5 |
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_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Chiave corrente
- Valore abilitato
- Dipende dal valore dell'opzione
- Elemento
- Giorno della settimana
| Voce | Valore memorizzato |
|---|---|
| domenica | 1 |
| lunedì | 2 |
| martedì | 3 |
| mercoledì | 4 |
| giovedì | 5 |
| venerdì | 6 |
| sabato | 7 |
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