Specifica la scadenza prima del riavvio automatico per l'installazione degli aggiornamenti: valore del Registro di sistema SetAutoRestartDeadline e altri 2ComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate

ID criterio
AutoRestartDeadline
Ambito
Configurazione computer
Supportato in
da Windows Server 2016 a Windows Server 2022 o Windows 10
Origine
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
Categoria
Componenti di Windows › Windows Update › Criteri legacy

Registro

SetAutoRestartDeadline

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
"SetAutoRestartDeadline"=dword:00000001
; Disabilitato
"SetAutoRestartDeadline"=dword:00000000
CMD
:: Opzioni (usarne solo una)

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

AutoRestartDeadlinePeriodInDays

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Aggiornamenti qualitativi (giorni):
Opzioni
VoceValore memorizzato
22
33
44
55
66
77
88
99
1010
1111
1212
1313
1414
1515
1616
1717
1818
1919
2020
2121
2222
2323
2424
2525
2626
2727
2828
2929
3030
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; 2
"AutoRestartDeadlinePeriodInDays"=dword:00000002
; 3
"AutoRestartDeadlinePeriodInDays"=dword:00000003
; 4
"AutoRestartDeadlinePeriodInDays"=dword:00000004
; 5
"AutoRestartDeadlinePeriodInDays"=dword:00000005
; 6
"AutoRestartDeadlinePeriodInDays"=dword:00000006
; 7
"AutoRestartDeadlinePeriodInDays"=dword:00000007
; 8
"AutoRestartDeadlinePeriodInDays"=dword:00000008
; 9
"AutoRestartDeadlinePeriodInDays"=dword:00000009
; 10
"AutoRestartDeadlinePeriodInDays"=dword:0000000a
; 11
"AutoRestartDeadlinePeriodInDays"=dword:0000000b
; 12
"AutoRestartDeadlinePeriodInDays"=dword:0000000c
; 13
"AutoRestartDeadlinePeriodInDays"=dword:0000000d
; 14
"AutoRestartDeadlinePeriodInDays"=dword:0000000e
; 15
"AutoRestartDeadlinePeriodInDays"=dword:0000000f
; 16
"AutoRestartDeadlinePeriodInDays"=dword:00000010
; 17
"AutoRestartDeadlinePeriodInDays"=dword:00000011
; 18
"AutoRestartDeadlinePeriodInDays"=dword:00000012
; 19
"AutoRestartDeadlinePeriodInDays"=dword:00000013
; 20
"AutoRestartDeadlinePeriodInDays"=dword:00000014
; 21
"AutoRestartDeadlinePeriodInDays"=dword:00000015
; 22
"AutoRestartDeadlinePeriodInDays"=dword:00000016
; 23
"AutoRestartDeadlinePeriodInDays"=dword:00000017
; 24
"AutoRestartDeadlinePeriodInDays"=dword:00000018
; 25
"AutoRestartDeadlinePeriodInDays"=dword:00000019
; 26
"AutoRestartDeadlinePeriodInDays"=dword:0000001a
; 27
"AutoRestartDeadlinePeriodInDays"=dword:0000001b
; 28
"AutoRestartDeadlinePeriodInDays"=dword:0000001c
; 29
"AutoRestartDeadlinePeriodInDays"=dword:0000001d
; 30
"AutoRestartDeadlinePeriodInDays"=dword:0000001e
CMD
:: Opzioni (usarne solo una)

:: 2
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 2 /f
:: 3
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 3 /f
:: 4
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 4 /f
:: 5
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 5 /f
:: 6
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 6 /f
:: 7
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 7 /f
:: 8
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 8 /f
:: 9
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 9 /f
:: 10
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 10 /f
:: 11
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 11 /f
:: 12
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 12 /f
:: 13
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 13 /f
:: 14
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 14 /f
:: 15
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 15 /f
:: 16
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 16 /f
:: 17
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 17 /f
:: 18
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 18 /f
:: 19
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 19 /f
:: 20
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 20 /f
:: 21
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 21 /f
:: 22
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 22 /f
:: 23
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 23 /f
:: 24
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 24 /f
:: 25
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 25 /f
:: 26
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 26 /f
:: 27
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 27 /f
:: 28
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 28 /f
:: 29
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 29 /f
:: 30
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDays" /t REG_DWORD /d 30 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opzioni (usarne solo una)
# 2
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 2 -Force | Out-Null
# 3
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 3 -Force | Out-Null
# 4
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 4 -Force | Out-Null
# 5
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 5 -Force | Out-Null
# 6
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 6 -Force | Out-Null
# 7
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 7 -Force | Out-Null
# 8
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 8 -Force | Out-Null
# 9
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 9 -Force | Out-Null
# 10
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 10 -Force | Out-Null
# 11
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 11 -Force | Out-Null
# 12
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 12 -Force | Out-Null
# 13
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 13 -Force | Out-Null
# 14
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 14 -Force | Out-Null
# 15
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 15 -Force | Out-Null
# 16
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 16 -Force | Out-Null
# 17
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 17 -Force | Out-Null
# 18
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 18 -Force | Out-Null
# 19
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 19 -Force | Out-Null
# 20
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 20 -Force | Out-Null
# 21
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 21 -Force | Out-Null
# 22
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 22 -Force | Out-Null
# 23
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 23 -Force | Out-Null
# 24
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 24 -Force | Out-Null
# 25
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 25 -Force | Out-Null
# 26
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 26 -Force | Out-Null
# 27
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 27 -Force | Out-Null
# 28
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 28 -Force | Out-Null
# 29
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 29 -Force | Out-Null
# 30
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDays' -PropertyType DWord -Value 30 -Force | Out-Null

AutoRestartDeadlinePeriodInDaysForFeatureUpdates

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Aggiornamenti delle funzionalità (giorni):
Opzioni
VoceValore memorizzato
22
33
44
55
66
77
88
99
1010
1111
1212
1313
1414
1515
1616
1717
1818
1919
2020
2121
2222
2323
2424
2525
2626
2727
2828
2929
3030
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opzioni (usarne solo una)
; 2
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000002
; 3
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000003
; 4
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000004
; 5
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000005
; 6
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000006
; 7
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000007
; 8
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000008
; 9
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000009
; 10
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:0000000a
; 11
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:0000000b
; 12
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:0000000c
; 13
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:0000000d
; 14
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:0000000e
; 15
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:0000000f
; 16
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000010
; 17
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000011
; 18
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000012
; 19
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000013
; 20
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000014
; 21
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000015
; 22
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000016
; 23
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000017
; 24
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000018
; 25
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:00000019
; 26
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:0000001a
; 27
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:0000001b
; 28
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:0000001c
; 29
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:0000001d
; 30
"AutoRestartDeadlinePeriodInDaysForFeatureUpdates"=dword:0000001e
CMD
:: Opzioni (usarne solo una)

:: 2
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 2 /f
:: 3
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 3 /f
:: 4
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 4 /f
:: 5
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 5 /f
:: 6
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 6 /f
:: 7
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 7 /f
:: 8
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 8 /f
:: 9
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 9 /f
:: 10
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 10 /f
:: 11
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 11 /f
:: 12
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 12 /f
:: 13
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 13 /f
:: 14
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 14 /f
:: 15
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 15 /f
:: 16
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 16 /f
:: 17
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 17 /f
:: 18
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 18 /f
:: 19
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 19 /f
:: 20
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 20 /f
:: 21
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 21 /f
:: 22
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 22 /f
:: 23
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 23 /f
:: 24
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 24 /f
:: 25
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 25 /f
:: 26
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 26 /f
:: 27
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 27 /f
:: 28
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 28 /f
:: 29
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 29 /f
:: 30
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "AutoRestartDeadlinePeriodInDaysForFeatureUpdates" /t REG_DWORD /d 30 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null

# Opzioni (usarne solo una)
# 2
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 2 -Force | Out-Null
# 3
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 3 -Force | Out-Null
# 4
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 4 -Force | Out-Null
# 5
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 5 -Force | Out-Null
# 6
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 6 -Force | Out-Null
# 7
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 7 -Force | Out-Null
# 8
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 8 -Force | Out-Null
# 9
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 9 -Force | Out-Null
# 10
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 10 -Force | Out-Null
# 11
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 11 -Force | Out-Null
# 12
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 12 -Force | Out-Null
# 13
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 13 -Force | Out-Null
# 14
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 14 -Force | Out-Null
# 15
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 15 -Force | Out-Null
# 16
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 16 -Force | Out-Null
# 17
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 17 -Force | Out-Null
# 18
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 18 -Force | Out-Null
# 19
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 19 -Force | Out-Null
# 20
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 20 -Force | Out-Null
# 21
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 21 -Force | Out-Null
# 22
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 22 -Force | Out-Null
# 23
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 23 -Force | Out-Null
# 24
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 24 -Force | Out-Null
# 25
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 25 -Force | Out-Null
# 26
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 26 -Force | Out-Null
# 27
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 27 -Force | Out-Null
# 28
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 28 -Force | Out-Null
# 29
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 29 -Force | Out-Null
# 30
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'AutoRestartDeadlinePeriodInDaysForFeatureUpdates' -PropertyType DWord -Value 30 -Force | Out-Null