設定 IPP 印表機的 TLS/SSL 安全性原則 的登錄值 SecurityFlagsBlockUnknownCA 等 3 個電腦HKLM\Software\Policies\Microsoft\Windows NT\Printers\IPP
- 原則 ID
- ConfigureIppTlsCertificatePolicy
- 適用範圍
- 電腦設定
- 支援的作業系統
- 至少需要 Windows 11 版本 24H2
- 來源
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
- 類別
- 印表機
登錄
SecurityFlagsBlockUnknownCA
REG_DWORD電腦- 已核取
- 1
- 未核取
- 0
- 元素
- 不允許無效的憑證頒發機構
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\IPP] ; 選項 (只使用其中一個) ; 已核取 "SecurityFlagsBlockUnknownCA"=dword:00000001 ; 未核取 "SecurityFlagsBlockUnknownCA"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\IPP" /v "SecurityFlagsBlockUnknownCA" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\IPP" /v "SecurityFlagsBlockUnknownCA" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\IPP' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\IPP' -Name 'SecurityFlagsBlockUnknownCA' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\IPP' -Name 'SecurityFlagsBlockUnknownCA' -PropertyType DWord -Value 0 -Force | Out-Null
SecurityFlagsBlockCertWrongUsage
REG_DWORD電腦- 已核取
- 1
- 未核取
- 0
- 元素
- 不允許非伺服器憑證
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\IPP] ; 選項 (只使用其中一個) ; 已核取 "SecurityFlagsBlockCertWrongUsage"=dword:00000001 ; 未核取 "SecurityFlagsBlockCertWrongUsage"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\IPP" /v "SecurityFlagsBlockCertWrongUsage" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\IPP" /v "SecurityFlagsBlockCertWrongUsage" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\IPP' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\IPP' -Name 'SecurityFlagsBlockCertWrongUsage' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\IPP' -Name 'SecurityFlagsBlockCertWrongUsage' -PropertyType DWord -Value 0 -Force | Out-Null
SecurityFlagsBlockCertCNInvalid
REG_DWORD電腦- 已核取
- 1
- 未核取
- 0
- 元素
- 不允許無效的憑證一般名稱
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\IPP] ; 選項 (只使用其中一個) ; 已核取 "SecurityFlagsBlockCertCNInvalid"=dword:00000001 ; 未核取 "SecurityFlagsBlockCertCNInvalid"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\IPP" /v "SecurityFlagsBlockCertCNInvalid" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\IPP" /v "SecurityFlagsBlockCertCNInvalid" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\IPP' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\IPP' -Name 'SecurityFlagsBlockCertCNInvalid' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\IPP' -Name 'SecurityFlagsBlockCertCNInvalid' -PropertyType DWord -Value 0 -Force | Out-Null
SecurityFlagsBlockCertDateInvalid
REG_DWORD電腦- 已核取
- 1
- 未核取
- 0
- 元素
- 不允許無效的憑證日期
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\IPP] ; 選項 (只使用其中一個) ; 已核取 "SecurityFlagsBlockCertDateInvalid"=dword:00000001 ; 未核取 "SecurityFlagsBlockCertDateInvalid"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\IPP" /v "SecurityFlagsBlockCertDateInvalid" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\IPP" /v "SecurityFlagsBlockCertDateInvalid" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\IPP' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\IPP' -Name 'SecurityFlagsBlockCertDateInvalid' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\IPP' -Name 'SecurityFlagsBlockCertDateInvalid' -PropertyType DWord -Value 0 -Force | Out-Null