更新安全性等級 的登錄值 UpdateSecurityLevel電腦HKLM\Software\Policies\Microsoft\Windows NT\DNSClient
- 原則 ID
- DNS_UpdateSecurityLevel
- 適用範圍
- 電腦設定
- 支援的作業系統
- 至少需要 Windows Server 2003 作業系統或 Windows XP Professional
- 來源
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
- 類別
- 網路 › DNS 用戶端
登錄
UpdateSecurityLevel
REG_DWORD電腦- 啟用時的值
- 取決於選項值
- 元素
- 更新安全性等級:
| 項目 | 儲存的值 |
|---|---|
| 只使用安全性 | 256 |
| 只使用非安全性 | 16 |
| 非安全性被拒時使用安全性 | 0 |
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DNSClient] ; 選項 (只使用其中一個) ; 只使用安全性 "UpdateSecurityLevel"=dword:00000100 ; 只使用非安全性 "UpdateSecurityLevel"=dword:00000010 ; 非安全性被拒時使用安全性 "UpdateSecurityLevel"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 只使用安全性 reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "UpdateSecurityLevel" /t REG_DWORD /d 256 /f :: 只使用非安全性 reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "UpdateSecurityLevel" /t REG_DWORD /d 16 /f :: 非安全性被拒時使用安全性 reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "UpdateSecurityLevel" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Force | Out-Null # 選項 (只使用其中一個) # 只使用安全性 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'UpdateSecurityLevel' -PropertyType DWord -Value 256 -Force | Out-Null # 只使用非安全性 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'UpdateSecurityLevel' -PropertyType DWord -Value 16 -Force | Out-Null # 非安全性被拒時使用安全性 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DNSClient' -Name 'UpdateSecurityLevel' -PropertyType DWord -Value 0 -Force | Out-Null