使用 Windows Connect Now 進行無線設定 的登錄值 EnableRegistrars 等 6 個電腦HKLM\Software\Policies\Microsoft\Windows\WCN\Registrars

原則 ID
WCN_EnableRegistrar
適用範圍
電腦設定
支援的作業系統
至少需要 Windows Vista
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
網路 › Windows Connect Now

登錄

EnableRegistrars

REG_DWORD電腦
啟用時的值
1
停用時的值
0
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WCN\Registrars]

; 選項 (只使用其中一個)
; 已啟用
"EnableRegistrars"=dword:00000001
; 已停用
"EnableRegistrars"=dword:00000000
CMD
:: 選項 (只使用其中一個)

:: 已啟用
reg add "HKLM\Software\Policies\Microsoft\Windows\WCN\Registrars" /v "EnableRegistrars" /t REG_DWORD /d 1 /f
:: 已停用
reg add "HKLM\Software\Policies\Microsoft\Windows\WCN\Registrars" /v "EnableRegistrars" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Force | Out-Null

# 選項 (只使用其中一個)
# 已啟用
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Name 'EnableRegistrars' -PropertyType DWord -Value 1 -Force | Out-Null
# 已停用
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Name 'EnableRegistrars' -PropertyType DWord -Value 0 -Force | Out-Null

DisableUPnPRegistrar

REG_DWORD電腦
已核取
1
未核取
0
元素
關閉透過 Ethernet (UPnP) 使用 WCN 進行設定的能力
值類型
REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WCN\Registrars]

; 選項 (只使用其中一個)
; 已核取
"DisableUPnPRegistrar"=dword:00000001
; 未核取
"DisableUPnPRegistrar"=dword:00000000
CMD
:: 選項 (只使用其中一個)

:: 已核取
reg add "HKLM\Software\Policies\Microsoft\Windows\WCN\Registrars" /v "DisableUPnPRegistrar" /t REG_DWORD /d 1 /f
:: 未核取
reg add "HKLM\Software\Policies\Microsoft\Windows\WCN\Registrars" /v "DisableUPnPRegistrar" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Force | Out-Null

# 選項 (只使用其中一個)
# 已核取
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Name 'DisableUPnPRegistrar' -PropertyType DWord -Value 1 -Force | Out-Null
# 未核取
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Name 'DisableUPnPRegistrar' -PropertyType DWord -Value 0 -Force | Out-Null

DisableInBand802DOT11Registrar

REG_DWORD電腦
已核取
1
未核取
0
元素
關閉透過頻內 802.11 WLAN 使用 WCN 進行設定的能力
值類型
REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WCN\Registrars]

; 選項 (只使用其中一個)
; 已核取
"DisableInBand802DOT11Registrar"=dword:00000001
; 未核取
"DisableInBand802DOT11Registrar"=dword:00000000
CMD
:: 選項 (只使用其中一個)

:: 已核取
reg add "HKLM\Software\Policies\Microsoft\Windows\WCN\Registrars" /v "DisableInBand802DOT11Registrar" /t REG_DWORD /d 1 /f
:: 未核取
reg add "HKLM\Software\Policies\Microsoft\Windows\WCN\Registrars" /v "DisableInBand802DOT11Registrar" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Force | Out-Null

# 選項 (只使用其中一個)
# 已核取
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Name 'DisableInBand802DOT11Registrar' -PropertyType DWord -Value 1 -Force | Out-Null
# 未核取
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Name 'DisableInBand802DOT11Registrar' -PropertyType DWord -Value 0 -Force | Out-Null

DisableFlashConfigRegistrar

REG_DWORD電腦
已核取
1
未核取
0
元素
關閉使用 USB 快閃磁碟機進行設定的能力
值類型
REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WCN\Registrars]

; 選項 (只使用其中一個)
; 已核取
"DisableFlashConfigRegistrar"=dword:00000001
; 未核取
"DisableFlashConfigRegistrar"=dword:00000000
CMD
:: 選項 (只使用其中一個)

:: 已核取
reg add "HKLM\Software\Policies\Microsoft\Windows\WCN\Registrars" /v "DisableFlashConfigRegistrar" /t REG_DWORD /d 1 /f
:: 未核取
reg add "HKLM\Software\Policies\Microsoft\Windows\WCN\Registrars" /v "DisableFlashConfigRegistrar" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Force | Out-Null

# 選項 (只使用其中一個)
# 已核取
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Name 'DisableFlashConfigRegistrar' -PropertyType DWord -Value 1 -Force | Out-Null
# 未核取
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Name 'DisableFlashConfigRegistrar' -PropertyType DWord -Value 0 -Force | Out-Null

DisableWPDRegistrar

REG_DWORD電腦
已核取
1
未核取
0
元素
關閉設定 Windows 可攜式裝置 (WPD) 的能力。
值類型
REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WCN\Registrars]

; 選項 (只使用其中一個)
; 已核取
"DisableWPDRegistrar"=dword:00000001
; 未核取
"DisableWPDRegistrar"=dword:00000000
CMD
:: 選項 (只使用其中一個)

:: 已核取
reg add "HKLM\Software\Policies\Microsoft\Windows\WCN\Registrars" /v "DisableWPDRegistrar" /t REG_DWORD /d 1 /f
:: 未核取
reg add "HKLM\Software\Policies\Microsoft\Windows\WCN\Registrars" /v "DisableWPDRegistrar" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Force | Out-Null

# 選項 (只使用其中一個)
# 已核取
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Name 'DisableWPDRegistrar' -PropertyType DWord -Value 1 -Force | Out-Null
# 未核取
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Name 'DisableWPDRegistrar' -PropertyType DWord -Value 0 -Force | Out-Null

MaxWCNDeviceNumber

REG_DWORD電腦
啟用時的值
取決於選項值
元素
允許的 WCN 裝置數目上限:
值類型
REG_DWORD
最大值
65535
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WCN\Registrars]

; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>
"MaxWCNDeviceNumber"=dword:<輸入值>
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>

reg add "HKLM\Software\Policies\Microsoft\Windows\WCN\Registrars" /v "MaxWCNDeviceNumber" /t REG_DWORD /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Name 'MaxWCNDeviceNumber' -PropertyType DWord -Value '<輸入值>' -Force | Out-Null

HigherPrecedenceRegistrar

REG_DWORD電腦
啟用時的值
取決於選項值
元素
由多媒體找到的裝置優先使用媒體:
選項
項目儲存的值
透過 Ethernet (UPnP) 使用 WCN1
頻內 802.11 WLAN 上的 WCN2
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WCN\Registrars]

; 選項 (只使用其中一個)
; 透過 Ethernet (UPnP) 使用 WCN
"HigherPrecedenceRegistrar"=dword:00000001
; 頻內 802.11 WLAN 上的 WCN
"HigherPrecedenceRegistrar"=dword:00000002
CMD
:: 選項 (只使用其中一個)

:: 透過 Ethernet (UPnP) 使用 WCN
reg add "HKLM\Software\Policies\Microsoft\Windows\WCN\Registrars" /v "HigherPrecedenceRegistrar" /t REG_DWORD /d 1 /f
:: 頻內 802.11 WLAN 上的 WCN
reg add "HKLM\Software\Policies\Microsoft\Windows\WCN\Registrars" /v "HigherPrecedenceRegistrar" /t REG_DWORD /d 2 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Force | Out-Null

# 選項 (只使用其中一個)
# 透過 Ethernet (UPnP) 使用 WCN
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Name 'HigherPrecedenceRegistrar' -PropertyType DWord -Value 1 -Force | Out-Null
# 頻內 802.11 WLAN 上的 WCN
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars' -Name 'HigherPrecedenceRegistrar' -PropertyType DWord -Value 2 -Force | Out-Null