顯示更新通知的選項 的登錄值 SetUpdateNotificationLevel 等 2 個電腦HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate
- 原則 ID
- UpdateNotificationLevel
- 適用範圍
- 電腦設定
- 支援的作業系統
- 至少需要 Windows Server 2019、Windows 10 1809 版
- 來源
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
- 類別
- Windows 元件 › Windows Update › 管理使用者體驗
登錄
SetUpdateNotificationLevel
REG_DWORD電腦- 啟用時的值
- 1
- 停用時的值
- 0
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate] ; 選項 (只使用其中一個) ; 已啟用 "SetUpdateNotificationLevel"=dword:00000001 ; 已停用 "SetUpdateNotificationLevel"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已啟用 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "SetUpdateNotificationLevel" /t REG_DWORD /d 1 /f :: 已停用 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "SetUpdateNotificationLevel" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null # 選項 (只使用其中一個) # 已啟用 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'SetUpdateNotificationLevel' -PropertyType DWord -Value 1 -Force | Out-Null # 已停用 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'SetUpdateNotificationLevel' -PropertyType DWord -Value 0 -Force | Out-Null
UpdateNotificationLevel
REG_DWORD電腦- 啟用時的值
- 取決於選項值
- 元素
- 指定更新通知的顯示選項:
| 項目 | 儲存的值 |
|---|---|
| 0 (預設) – 預設作業系統的Windows Update 通知 | 0 |
| 1 – 停用所有通知,排除重新開機警告 | 1 |
| 2 – 停用所有通知,包括重新開機警告 | 2 |
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate] ; 選項 (只使用其中一個) ; 0 (預設) – 預設作業系統的Windows Update 通知 "UpdateNotificationLevel"=dword:00000000 ; 1 – 停用所有通知,排除重新開機警告 "UpdateNotificationLevel"=dword:00000001 ; 2 – 停用所有通知,包括重新開機警告 "UpdateNotificationLevel"=dword:00000002
CMD
:: 選項 (只使用其中一個) :: 0 (預設) – 預設作業系統的Windows Update 通知 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "UpdateNotificationLevel" /t REG_DWORD /d 0 /f :: 1 – 停用所有通知,排除重新開機警告 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "UpdateNotificationLevel" /t REG_DWORD /d 1 /f :: 2 – 停用所有通知,包括重新開機警告 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "UpdateNotificationLevel" /t REG_DWORD /d 2 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null # 選項 (只使用其中一個) # 0 (預設) – 預設作業系統的Windows Update 通知 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'UpdateNotificationLevel' -PropertyType DWord -Value 0 -Force | Out-Null # 1 – 停用所有通知,排除重新開機警告 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'UpdateNotificationLevel' -PropertyType DWord -Value 1 -Force | Out-Null # 2 – 停用所有通知,包括重新開機警告 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'UpdateNotificationLevel' -PropertyType DWord -Value 2 -Force | Out-Null
NoUpdateNotificationsDuringActiveHours
REG_DWORD電腦- 已核取
- 1
- 未核取
- 0
- 元素
- 僅於使用時間期間套用
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate] ; 選項 (只使用其中一個) ; 已核取 "NoUpdateNotificationsDuringActiveHours"=dword:00000001 ; 未核取 "NoUpdateNotificationsDuringActiveHours"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "NoUpdateNotificationsDuringActiveHours" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate" /v "NoUpdateNotificationsDuringActiveHours" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'NoUpdateNotificationsDuringActiveHours' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate' -Name 'NoUpdateNotificationsDuringActiveHours' -PropertyType DWord -Value 0 -Force | Out-Null