Désactiver le redémarrage automatique pour les mises à jour pendant les heures d’activité : valeur de Registre SetActiveHours et 2 autresOrdinateurHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate
- ID de stratégie
- ActiveHours
- Étendue
- Configuration ordinateur
- Pris en charge sur
- Au moins Windows Server 2016 ou Windows 10
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Catégorie
- Composants Windows › Windows Update › Gérer l’expérience utilisateur final
Registre
SetActiveHours
REG_DWORDOrdinateur- Valeur si activée
- 1
- Valeur si désactivée
- 0
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate] ; Options (en utiliser une seule) ; Activé "SetActiveHours"=dword:00000001 ; Désactivé "SetActiveHours"=dword:00000000
CMD
:: Options (en utiliser une seule) :: Activé reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "SetActiveHours" /t REG_DWORD /d 1 /f :: Désactivé reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "SetActiveHours" /t REG_DWORD /d 0 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null # Options (en utiliser une seule) # Activé New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'SetActiveHours' -PropertyType DWord -Value 1 -Force | Out-Null # Désactivé New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'SetActiveHours' -PropertyType DWord -Value 0 -Force | Out-Null
ActiveHoursStart
REG_DWORDOrdinateur- Valeur si activée
- Dépend de la valeur de l'option
- Élément
- Début :
| Entrée | Valeur stockée |
|---|---|
| Minuit | 0 |
| 1 h 00 | 1 |
| 2 h 00 | 2 |
| 3 h 00 | 3 |
| 4 h 00 | 4 |
| 5 h 00 | 5 |
| 6 h 00 | 6 |
| 7 h 00 | 7 |
| 8 h 00 | 8 |
| 9 h 00 | 9 |
| 10 h 00 | 10 |
| 11 h 00 | 11 |
| Midi | 12 |
| 13 h 00 | 13 |
| 14 h 00 | 14 |
| 15 h 00 | 15 |
| 16 h 00 | 16 |
| 17 h 00 | 17 |
| 18 h 00 | 18 |
| 19 h 00 | 19 |
| 20 h 00 | 20 |
| 21 h 00 | 21 |
| 22 h 00 | 22 |
| 23 h 00 | 23 |
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate] ; Options (en utiliser une seule) ; Minuit "ActiveHoursStart"=dword:00000000 ; 1 h 00 "ActiveHoursStart"=dword:00000001 ; 2 h 00 "ActiveHoursStart"=dword:00000002 ; 3 h 00 "ActiveHoursStart"=dword:00000003 ; 4 h 00 "ActiveHoursStart"=dword:00000004 ; 5 h 00 "ActiveHoursStart"=dword:00000005 ; 6 h 00 "ActiveHoursStart"=dword:00000006 ; 7 h 00 "ActiveHoursStart"=dword:00000007 ; 8 h 00 "ActiveHoursStart"=dword:00000008 ; 9 h 00 "ActiveHoursStart"=dword:00000009 ; 10 h 00 "ActiveHoursStart"=dword:0000000a ; 11 h 00 "ActiveHoursStart"=dword:0000000b ; Midi "ActiveHoursStart"=dword:0000000c ; 13 h 00 "ActiveHoursStart"=dword:0000000d ; 14 h 00 "ActiveHoursStart"=dword:0000000e ; 15 h 00 "ActiveHoursStart"=dword:0000000f ; 16 h 00 "ActiveHoursStart"=dword:00000010 ; 17 h 00 "ActiveHoursStart"=dword:00000011 ; 18 h 00 "ActiveHoursStart"=dword:00000012 ; 19 h 00 "ActiveHoursStart"=dword:00000013 ; 20 h 00 "ActiveHoursStart"=dword:00000014 ; 21 h 00 "ActiveHoursStart"=dword:00000015 ; 22 h 00 "ActiveHoursStart"=dword:00000016 ; 23 h 00 "ActiveHoursStart"=dword:00000017
CMD
:: Options (en utiliser une seule) :: Minuit reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 0 /f :: 1 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 1 /f :: 2 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 2 /f :: 3 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 3 /f :: 4 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 4 /f :: 5 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 5 /f :: 6 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 6 /f :: 7 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 7 /f :: 8 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 8 /f :: 9 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 9 /f :: 10 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 10 /f :: 11 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 11 /f :: Midi reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 12 /f :: 13 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 13 /f :: 14 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 14 /f :: 15 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 15 /f :: 16 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 16 /f :: 17 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 17 /f :: 18 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 18 /f :: 19 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 19 /f :: 20 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 20 /f :: 21 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 21 /f :: 22 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 22 /f :: 23 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 23 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null # Options (en utiliser une seule) # Minuit New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 0 -Force | Out-Null # 1 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 1 -Force | Out-Null # 2 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 2 -Force | Out-Null # 3 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 3 -Force | Out-Null # 4 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 4 -Force | Out-Null # 5 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 5 -Force | Out-Null # 6 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 6 -Force | Out-Null # 7 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 7 -Force | Out-Null # 8 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 8 -Force | Out-Null # 9 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 9 -Force | Out-Null # 10 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 10 -Force | Out-Null # 11 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 11 -Force | Out-Null # Midi New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 12 -Force | Out-Null # 13 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 13 -Force | Out-Null # 14 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 14 -Force | Out-Null # 15 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 15 -Force | Out-Null # 16 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 16 -Force | Out-Null # 17 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 17 -Force | Out-Null # 18 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 18 -Force | Out-Null # 19 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 19 -Force | Out-Null # 20 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 20 -Force | Out-Null # 21 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 21 -Force | Out-Null # 22 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 22 -Force | Out-Null # 23 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 23 -Force | Out-Null
ActiveHoursEnd
REG_DWORDOrdinateur- Valeur si activée
- Dépend de la valeur de l'option
- Élément
- Fin :
| Entrée | Valeur stockée |
|---|---|
| Minuit | 0 |
| 1 h 00 | 1 |
| 2 h 00 | 2 |
| 3 h 00 | 3 |
| 4 h 00 | 4 |
| 5 h 00 | 5 |
| 6 h 00 | 6 |
| 7 h 00 | 7 |
| 8 h 00 | 8 |
| 9 h 00 | 9 |
| 10 h 00 | 10 |
| 11 h 00 | 11 |
| Midi | 12 |
| 13 h 00 | 13 |
| 14 h 00 | 14 |
| 15 h 00 | 15 |
| 16 h 00 | 16 |
| 17 h 00 | 17 |
| 18 h 00 | 18 |
| 19 h 00 | 19 |
| 20 h 00 | 20 |
| 21 h 00 | 21 |
| 22 h 00 | 22 |
| 23 h 00 | 23 |
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate] ; Options (en utiliser une seule) ; Minuit "ActiveHoursEnd"=dword:00000000 ; 1 h 00 "ActiveHoursEnd"=dword:00000001 ; 2 h 00 "ActiveHoursEnd"=dword:00000002 ; 3 h 00 "ActiveHoursEnd"=dword:00000003 ; 4 h 00 "ActiveHoursEnd"=dword:00000004 ; 5 h 00 "ActiveHoursEnd"=dword:00000005 ; 6 h 00 "ActiveHoursEnd"=dword:00000006 ; 7 h 00 "ActiveHoursEnd"=dword:00000007 ; 8 h 00 "ActiveHoursEnd"=dword:00000008 ; 9 h 00 "ActiveHoursEnd"=dword:00000009 ; 10 h 00 "ActiveHoursEnd"=dword:0000000a ; 11 h 00 "ActiveHoursEnd"=dword:0000000b ; Midi "ActiveHoursEnd"=dword:0000000c ; 13 h 00 "ActiveHoursEnd"=dword:0000000d ; 14 h 00 "ActiveHoursEnd"=dword:0000000e ; 15 h 00 "ActiveHoursEnd"=dword:0000000f ; 16 h 00 "ActiveHoursEnd"=dword:00000010 ; 17 h 00 "ActiveHoursEnd"=dword:00000011 ; 18 h 00 "ActiveHoursEnd"=dword:00000012 ; 19 h 00 "ActiveHoursEnd"=dword:00000013 ; 20 h 00 "ActiveHoursEnd"=dword:00000014 ; 21 h 00 "ActiveHoursEnd"=dword:00000015 ; 22 h 00 "ActiveHoursEnd"=dword:00000016 ; 23 h 00 "ActiveHoursEnd"=dword:00000017
CMD
:: Options (en utiliser une seule) :: Minuit reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 0 /f :: 1 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 1 /f :: 2 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 2 /f :: 3 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 3 /f :: 4 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 4 /f :: 5 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 5 /f :: 6 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 6 /f :: 7 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 7 /f :: 8 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 8 /f :: 9 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 9 /f :: 10 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 10 /f :: 11 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 11 /f :: Midi reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 12 /f :: 13 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 13 /f :: 14 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 14 /f :: 15 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 15 /f :: 16 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 16 /f :: 17 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 17 /f :: 18 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 18 /f :: 19 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 19 /f :: 20 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 20 /f :: 21 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 21 /f :: 22 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 22 /f :: 23 h 00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 23 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null # Options (en utiliser une seule) # Minuit New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 0 -Force | Out-Null # 1 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 1 -Force | Out-Null # 2 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 2 -Force | Out-Null # 3 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 3 -Force | Out-Null # 4 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 4 -Force | Out-Null # 5 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 5 -Force | Out-Null # 6 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 6 -Force | Out-Null # 7 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 7 -Force | Out-Null # 8 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 8 -Force | Out-Null # 9 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 9 -Force | Out-Null # 10 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 10 -Force | Out-Null # 11 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 11 -Force | Out-Null # Midi New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 12 -Force | Out-Null # 13 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 13 -Force | Out-Null # 14 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 14 -Force | Out-Null # 15 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 15 -Force | Out-Null # 16 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 16 -Force | Out-Null # 17 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 17 -Force | Out-Null # 18 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 18 -Force | Out-Null # 19 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 19 -Force | Out-Null # 20 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 20 -Force | Out-Null # 21 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 21 -Force | Out-Null # 22 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 22 -Force | Out-Null # 23 h 00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 23 -Force | Out-Null