Automatischen Neustart nach Updates während der Nutzungszeit deaktivieren: Registrierungswert SetActiveHours und 2 weitereComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate
- Richtlinien-ID
- ActiveHours
- Bereich
- Computerkonfiguration
- Unterstützt unter
- Mindestens Windows Server 2016 oder Windows 10
- Quelle
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (Version 1.0)
- Kategorie
- Windows-Komponenten › Windows Update › Endbenutzeroberfläche verwalten
Registrierung
SetActiveHours
REG_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Aktueller Schlüssel
- Wert bei Aktivierung
- 1
- Wert bei Deaktivierung
- 0
Mit .reg · CMD · PowerShell anwenden
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate] ; Optionen (nur eine verwenden) ; Aktiviert "SetActiveHours"=dword:00000001 ; Deaktiviert "SetActiveHours"=dword:00000000
CMD
:: Optionen (nur eine verwenden) :: Aktiviert reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "SetActiveHours" /t REG_DWORD /d 1 /f :: Deaktiviert reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "SetActiveHours" /t REG_DWORD /d 0 /f
PowerShell
# Gemeinsam: Schlüssel erstellen New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null # Optionen (nur eine verwenden) # Aktiviert New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'SetActiveHours' -PropertyType DWord -Value 1 -Force | Out-Null # Deaktiviert New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'SetActiveHours' -PropertyType DWord -Value 0 -Force | Out-Null
ActiveHoursStart
REG_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Aktueller Schlüssel
- Wert bei Aktivierung
- Hängt vom Wert der Option ab
- Element
- Start:
| Eintrag | Gespeicherter Wert |
|---|---|
| 00:00 | 0 |
| 01:00 | 1 |
| 02:00 | 2 |
| 03:00 | 3 |
| 04:00 | 4 |
| 05:00 | 5 |
| 06:00 | 6 |
| 07:00 | 7 |
| 08:00 | 8 |
| 09:00 | 9 |
| 10:00 | 10 |
| 11:00 | 11 |
| 12:00 | 12 |
| 13:00 | 13 |
| 14:00 | 14 |
| 15:00 | 15 |
| 16:00 | 16 |
| 17:00 | 17 |
| 18:00 | 18 |
| 19:00 | 19 |
| 20:00 | 20 |
| 21:00 | 21 |
| 22:00 | 22 |
| 23:00 | 23 |
Mit .reg · CMD · PowerShell anwenden
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate] ; Optionen (nur eine verwenden) ; 00:00 "ActiveHoursStart"=dword:00000000 ; 01:00 "ActiveHoursStart"=dword:00000001 ; 02:00 "ActiveHoursStart"=dword:00000002 ; 03:00 "ActiveHoursStart"=dword:00000003 ; 04:00 "ActiveHoursStart"=dword:00000004 ; 05:00 "ActiveHoursStart"=dword:00000005 ; 06:00 "ActiveHoursStart"=dword:00000006 ; 07:00 "ActiveHoursStart"=dword:00000007 ; 08:00 "ActiveHoursStart"=dword:00000008 ; 09:00 "ActiveHoursStart"=dword:00000009 ; 10:00 "ActiveHoursStart"=dword:0000000a ; 11:00 "ActiveHoursStart"=dword:0000000b ; 12:00 "ActiveHoursStart"=dword:0000000c ; 13:00 "ActiveHoursStart"=dword:0000000d ; 14:00 "ActiveHoursStart"=dword:0000000e ; 15:00 "ActiveHoursStart"=dword:0000000f ; 16:00 "ActiveHoursStart"=dword:00000010 ; 17:00 "ActiveHoursStart"=dword:00000011 ; 18:00 "ActiveHoursStart"=dword:00000012 ; 19:00 "ActiveHoursStart"=dword:00000013 ; 20:00 "ActiveHoursStart"=dword:00000014 ; 21:00 "ActiveHoursStart"=dword:00000015 ; 22:00 "ActiveHoursStart"=dword:00000016 ; 23:00 "ActiveHoursStart"=dword:00000017
CMD
:: Optionen (nur eine verwenden) :: 00:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 0 /f :: 01:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 1 /f :: 02:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 2 /f :: 03:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 3 /f :: 04:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 4 /f :: 05:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 5 /f :: 06:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 6 /f :: 07:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 7 /f :: 08:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 8 /f :: 09:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 9 /f :: 10:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 10 /f :: 11:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 11 /f :: 12:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 12 /f :: 13:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 13 /f :: 14:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 14 /f :: 15:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 15 /f :: 16:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 16 /f :: 17:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 17 /f :: 18:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 18 /f :: 19:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 19 /f :: 20:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 20 /f :: 21:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 21 /f :: 22:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 22 /f :: 23:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 23 /f
PowerShell
# Gemeinsam: Schlüssel erstellen New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null # Optionen (nur eine verwenden) # 00:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 0 -Force | Out-Null # 01:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 1 -Force | Out-Null # 02:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 2 -Force | Out-Null # 03:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 3 -Force | Out-Null # 04:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 4 -Force | Out-Null # 05:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 5 -Force | Out-Null # 06:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 6 -Force | Out-Null # 07:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 7 -Force | Out-Null # 08:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 8 -Force | Out-Null # 09:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 9 -Force | Out-Null # 10:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 10 -Force | Out-Null # 11:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 11 -Force | Out-Null # 12:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 12 -Force | Out-Null # 13:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 13 -Force | Out-Null # 14:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 14 -Force | Out-Null # 15:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 15 -Force | Out-Null # 16:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 16 -Force | Out-Null # 17:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 17 -Force | Out-Null # 18:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 18 -Force | Out-Null # 19:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 19 -Force | Out-Null # 20:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 20 -Force | Out-Null # 21:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 21 -Force | Out-Null # 22:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 22 -Force | Out-Null # 23:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 23 -Force | Out-Null
ActiveHoursEnd
REG_DWORDComputerHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate Aktueller Schlüssel
- Wert bei Aktivierung
- Hängt vom Wert der Option ab
- Element
- Ende:
| Eintrag | Gespeicherter Wert |
|---|---|
| 00:00 | 0 |
| 01:00 | 1 |
| 02:00 | 2 |
| 03:00 | 3 |
| 04:00 | 4 |
| 05:00 | 5 |
| 06:00 | 6 |
| 07:00 | 7 |
| 08:00 | 8 |
| 09:00 | 9 |
| 10:00 | 10 |
| 11:00 | 11 |
| 12:00 | 12 |
| 13:00 | 13 |
| 14:00 | 14 |
| 15:00 | 15 |
| 16:00 | 16 |
| 17:00 | 17 |
| 18:00 | 18 |
| 19:00 | 19 |
| 20:00 | 20 |
| 21:00 | 21 |
| 22:00 | 22 |
| 23:00 | 23 |
Mit .reg · CMD · PowerShell anwenden
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate] ; Optionen (nur eine verwenden) ; 00:00 "ActiveHoursEnd"=dword:00000000 ; 01:00 "ActiveHoursEnd"=dword:00000001 ; 02:00 "ActiveHoursEnd"=dword:00000002 ; 03:00 "ActiveHoursEnd"=dword:00000003 ; 04:00 "ActiveHoursEnd"=dword:00000004 ; 05:00 "ActiveHoursEnd"=dword:00000005 ; 06:00 "ActiveHoursEnd"=dword:00000006 ; 07:00 "ActiveHoursEnd"=dword:00000007 ; 08:00 "ActiveHoursEnd"=dword:00000008 ; 09:00 "ActiveHoursEnd"=dword:00000009 ; 10:00 "ActiveHoursEnd"=dword:0000000a ; 11:00 "ActiveHoursEnd"=dword:0000000b ; 12:00 "ActiveHoursEnd"=dword:0000000c ; 13:00 "ActiveHoursEnd"=dword:0000000d ; 14:00 "ActiveHoursEnd"=dword:0000000e ; 15:00 "ActiveHoursEnd"=dword:0000000f ; 16:00 "ActiveHoursEnd"=dword:00000010 ; 17:00 "ActiveHoursEnd"=dword:00000011 ; 18:00 "ActiveHoursEnd"=dword:00000012 ; 19:00 "ActiveHoursEnd"=dword:00000013 ; 20:00 "ActiveHoursEnd"=dword:00000014 ; 21:00 "ActiveHoursEnd"=dword:00000015 ; 22:00 "ActiveHoursEnd"=dword:00000016 ; 23:00 "ActiveHoursEnd"=dword:00000017
CMD
:: Optionen (nur eine verwenden) :: 00:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 0 /f :: 01:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 1 /f :: 02:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 2 /f :: 03:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 3 /f :: 04:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 4 /f :: 05:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 5 /f :: 06:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 6 /f :: 07:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 7 /f :: 08:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 8 /f :: 09:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 9 /f :: 10:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 10 /f :: 11:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 11 /f :: 12:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 12 /f :: 13:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 13 /f :: 14:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 14 /f :: 15:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 15 /f :: 16:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 16 /f :: 17:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 17 /f :: 18:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 18 /f :: 19:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 19 /f :: 20:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 20 /f :: 21:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 21 /f :: 22:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 22 /f :: 23:00 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 23 /f
PowerShell
# Gemeinsam: Schlüssel erstellen New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null # Optionen (nur eine verwenden) # 00:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 0 -Force | Out-Null # 01:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 1 -Force | Out-Null # 02:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 2 -Force | Out-Null # 03:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 3 -Force | Out-Null # 04:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 4 -Force | Out-Null # 05:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 5 -Force | Out-Null # 06:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 6 -Force | Out-Null # 07:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 7 -Force | Out-Null # 08:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 8 -Force | Out-Null # 09:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 9 -Force | Out-Null # 10:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 10 -Force | Out-Null # 11:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 11 -Force | Out-Null # 12:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 12 -Force | Out-Null # 13:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 13 -Force | Out-Null # 14:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 14 -Force | Out-Null # 15:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 15 -Force | Out-Null # 16:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 16 -Force | Out-Null # 17:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 17 -Force | Out-Null # 18:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 18 -Force | Out-Null # 19:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 19 -Force | Out-Null # 20:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 20 -Force | Out-Null # 21:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 21 -Force | Out-Null # 22:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 22 -Force | Out-Null # 23:00 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 23 -Force | Out-Null