アクティブ時間内の更新プログラムの自動再起動をオフにします のレジストリ値 SetActiveHours ほか 2 件コンピューターHKLM\Software\Policies\Microsoft\Windows\WindowsUpdate
- ポリシー ID
- ActiveHours
- 適用対象
- コンピューターの構成
- サポートされるバージョン
- Windows Server 2016 以降または Windows 10 以降
- 出典
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
- カテゴリ
- Windows コンポーネント › Windows Update › エンド ユーザー エクスペリエンスの管理
レジストリ
SetActiveHours
REG_DWORDコンピューター- 有効時の値
- 1
- 無効時の値
- 0
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate] ; 選択項目 (1 つだけ使用) ; 有効 "SetActiveHours"=dword:00000001 ; 無効 "SetActiveHours"=dword:00000000
CMD
:: 選択項目 (1 つだけ使用) :: 有効 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "SetActiveHours" /t REG_DWORD /d 1 /f :: 無効 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "SetActiveHours" /t REG_DWORD /d 0 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null # 選択項目 (1 つだけ使用) # 有効 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'SetActiveHours' -PropertyType DWord -Value 1 -Force | Out-Null # 無効 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'SetActiveHours' -PropertyType DWord -Value 0 -Force | Out-Null
ActiveHoursStart
REG_DWORDコンピューター- 有効時の値
- オプションの値に依存
- 要素
- 開始:
| 項目 | 保存される値 |
|---|---|
| 12 AM | 0 |
| 1 AM | 1 |
| 2 AM | 2 |
| 3 AM | 3 |
| 4 AM | 4 |
| 5 AM | 5 |
| 6 AM | 6 |
| 7 AM | 7 |
| 8 AM | 8 |
| 9 AM | 9 |
| 10 AM | 10 |
| 11 AM | 11 |
| 12 PM | 12 |
| 1 PM | 13 |
| 2 PM | 14 |
| 3 PM | 15 |
| 4 PM | 16 |
| 5 PM | 17 |
| 6 PM | 18 |
| 7 PM | 19 |
| 8 PM | 20 |
| 9 PM | 21 |
| 10 PM | 22 |
| 11 PM | 23 |
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate] ; 選択項目 (1 つだけ使用) ; 12 AM "ActiveHoursStart"=dword:00000000 ; 1 AM "ActiveHoursStart"=dword:00000001 ; 2 AM "ActiveHoursStart"=dword:00000002 ; 3 AM "ActiveHoursStart"=dword:00000003 ; 4 AM "ActiveHoursStart"=dword:00000004 ; 5 AM "ActiveHoursStart"=dword:00000005 ; 6 AM "ActiveHoursStart"=dword:00000006 ; 7 AM "ActiveHoursStart"=dword:00000007 ; 8 AM "ActiveHoursStart"=dword:00000008 ; 9 AM "ActiveHoursStart"=dword:00000009 ; 10 AM "ActiveHoursStart"=dword:0000000a ; 11 AM "ActiveHoursStart"=dword:0000000b ; 12 PM "ActiveHoursStart"=dword:0000000c ; 1 PM "ActiveHoursStart"=dword:0000000d ; 2 PM "ActiveHoursStart"=dword:0000000e ; 3 PM "ActiveHoursStart"=dword:0000000f ; 4 PM "ActiveHoursStart"=dword:00000010 ; 5 PM "ActiveHoursStart"=dword:00000011 ; 6 PM "ActiveHoursStart"=dword:00000012 ; 7 PM "ActiveHoursStart"=dword:00000013 ; 8 PM "ActiveHoursStart"=dword:00000014 ; 9 PM "ActiveHoursStart"=dword:00000015 ; 10 PM "ActiveHoursStart"=dword:00000016 ; 11 PM "ActiveHoursStart"=dword:00000017
CMD
:: 選択項目 (1 つだけ使用) :: 12 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 0 /f :: 1 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 1 /f :: 2 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 2 /f :: 3 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 3 /f :: 4 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 4 /f :: 5 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 5 /f :: 6 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 6 /f :: 7 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 7 /f :: 8 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 8 /f :: 9 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 9 /f :: 10 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 10 /f :: 11 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 11 /f :: 12 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 12 /f :: 1 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 13 /f :: 2 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 14 /f :: 3 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 15 /f :: 4 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 16 /f :: 5 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 17 /f :: 6 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 18 /f :: 7 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 19 /f :: 8 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 20 /f :: 9 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 21 /f :: 10 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 22 /f :: 11 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursStart" /t REG_DWORD /d 23 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null # 選択項目 (1 つだけ使用) # 12 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 0 -Force | Out-Null # 1 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 1 -Force | Out-Null # 2 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 2 -Force | Out-Null # 3 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 3 -Force | Out-Null # 4 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 4 -Force | Out-Null # 5 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 5 -Force | Out-Null # 6 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 6 -Force | Out-Null # 7 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 7 -Force | Out-Null # 8 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 8 -Force | Out-Null # 9 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 9 -Force | Out-Null # 10 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 10 -Force | Out-Null # 11 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 11 -Force | Out-Null # 12 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 12 -Force | Out-Null # 1 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 13 -Force | Out-Null # 2 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 14 -Force | Out-Null # 3 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 15 -Force | Out-Null # 4 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 16 -Force | Out-Null # 5 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 17 -Force | Out-Null # 6 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 18 -Force | Out-Null # 7 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 19 -Force | Out-Null # 8 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 20 -Force | Out-Null # 9 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 21 -Force | Out-Null # 10 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 22 -Force | Out-Null # 11 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursStart' -PropertyType DWord -Value 23 -Force | Out-Null
ActiveHoursEnd
REG_DWORDコンピューター- 有効時の値
- オプションの値に依存
- 要素
- 終了:
| 項目 | 保存される値 |
|---|---|
| 12 AM | 0 |
| 1 AM | 1 |
| 2 AM | 2 |
| 3 AM | 3 |
| 4 AM | 4 |
| 5 AM | 5 |
| 6 AM | 6 |
| 7 AM | 7 |
| 8 AM | 8 |
| 9 AM | 9 |
| 10 AM | 10 |
| 11 AM | 11 |
| 12 PM | 12 |
| 1 PM | 13 |
| 2 PM | 14 |
| 3 PM | 15 |
| 4 PM | 16 |
| 5 PM | 17 |
| 6 PM | 18 |
| 7 PM | 19 |
| 8 PM | 20 |
| 9 PM | 21 |
| 10 PM | 22 |
| 11 PM | 23 |
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate] ; 選択項目 (1 つだけ使用) ; 12 AM "ActiveHoursEnd"=dword:00000000 ; 1 AM "ActiveHoursEnd"=dword:00000001 ; 2 AM "ActiveHoursEnd"=dword:00000002 ; 3 AM "ActiveHoursEnd"=dword:00000003 ; 4 AM "ActiveHoursEnd"=dword:00000004 ; 5 AM "ActiveHoursEnd"=dword:00000005 ; 6 AM "ActiveHoursEnd"=dword:00000006 ; 7 AM "ActiveHoursEnd"=dword:00000007 ; 8 AM "ActiveHoursEnd"=dword:00000008 ; 9 AM "ActiveHoursEnd"=dword:00000009 ; 10 AM "ActiveHoursEnd"=dword:0000000a ; 11 AM "ActiveHoursEnd"=dword:0000000b ; 12 PM "ActiveHoursEnd"=dword:0000000c ; 1 PM "ActiveHoursEnd"=dword:0000000d ; 2 PM "ActiveHoursEnd"=dword:0000000e ; 3 PM "ActiveHoursEnd"=dword:0000000f ; 4 PM "ActiveHoursEnd"=dword:00000010 ; 5 PM "ActiveHoursEnd"=dword:00000011 ; 6 PM "ActiveHoursEnd"=dword:00000012 ; 7 PM "ActiveHoursEnd"=dword:00000013 ; 8 PM "ActiveHoursEnd"=dword:00000014 ; 9 PM "ActiveHoursEnd"=dword:00000015 ; 10 PM "ActiveHoursEnd"=dword:00000016 ; 11 PM "ActiveHoursEnd"=dword:00000017
CMD
:: 選択項目 (1 つだけ使用) :: 12 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 0 /f :: 1 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 1 /f :: 2 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 2 /f :: 3 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 3 /f :: 4 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 4 /f :: 5 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 5 /f :: 6 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 6 /f :: 7 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 7 /f :: 8 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 8 /f :: 9 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 9 /f :: 10 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 10 /f :: 11 AM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 11 /f :: 12 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 12 /f :: 1 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 13 /f :: 2 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 14 /f :: 3 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 15 /f :: 4 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 16 /f :: 5 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 17 /f :: 6 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 18 /f :: 7 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 19 /f :: 8 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 20 /f :: 9 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 21 /f :: 10 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 22 /f :: 11 PM reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "ActiveHoursEnd" /t REG_DWORD /d 23 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null # 選択項目 (1 つだけ使用) # 12 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 0 -Force | Out-Null # 1 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 1 -Force | Out-Null # 2 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 2 -Force | Out-Null # 3 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 3 -Force | Out-Null # 4 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 4 -Force | Out-Null # 5 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 5 -Force | Out-Null # 6 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 6 -Force | Out-Null # 7 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 7 -Force | Out-Null # 8 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 8 -Force | Out-Null # 9 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 9 -Force | Out-Null # 10 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 10 -Force | Out-Null # 11 AM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 11 -Force | Out-Null # 12 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 12 -Force | Out-Null # 1 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 13 -Force | Out-Null # 2 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 14 -Force | Out-Null # 3 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 15 -Force | Out-Null # 4 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 16 -Force | Out-Null # 5 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 17 -Force | Out-Null # 6 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 18 -Force | Out-Null # 7 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 19 -Force | Out-Null # 8 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 20 -Force | Out-Null # 9 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 21 -Force | Out-Null # 10 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 22 -Force | Out-Null # 11 PM New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'ActiveHoursEnd' -PropertyType DWord -Value 23 -Force | Out-Null