Open in the explorer

Configuration of wireless settings using Windows Connect Now

Configuration des paramètres sans fil à l’aide de Windows Connect Now

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Network › Windows Connect Now FR: Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › Windows Connect Now
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
WindowsConnectNow.admx
Internal name
WindowsConnectNow/WCN_EnableRegistrar

Explanation

This policy setting allows the configuration of wireless settings using Windows Connect Now (WCN). The WCN Registrar enables the discovery and configuration of devices over Ethernet (UPnP), over In-band 802.11 WLAN, through the Windows Portable Device API (WPD), and via USB Flash drives.

Additional options are available to allow discovery and configuration over a specific medium.

If you enable this policy setting, additional choices are available to turn off the operations over a specific medium.

If you disable this policy setting, operations are disabled over all media.

If you do not configure this policy setting, operations are enabled over all media.

The default for this policy setting allows operations over all media.

French text from Windows 11 26H2

Ce paramètre de stratégie autorise la configuration des paramètres sans fil à l'aide de Windows Connect Now (WCN). Le registre de WCN active la découverte et la configuration des périphériques sur Ethernet (UPnP), sur Wifi 802.11 intrabande, via l'API d'appareil mobile Windows (WPD), ainsi que l'utilisation de lecteurs Flash USB.

Des options supplémentaires permettent la découverte et la configuration sur un média spécifique.

Si vous activez ce paramètre de stratégie, d'autres options sont disponibles pour désactiver les opérations sur un média spécifique.

Si vous désactivez ce paramètre de stratégie, les opérations sont désactivées sur tous les médias.

Si vous ne configurez pas ce paramètre de stratégie, les opérations sont activées sur tous les médias.

La valeur par défaut de ce paramètre de stratégie autorise les opérations sur tous les médias.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WCN\Registrars
Value name
EnableRegistrars
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: WindowsConnectNow/WCN_EnableRegistrar
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableRegistrars' -Value 1 -Type DWord
# Turn off ability to configure using WCN over Ethernet (UPnP)
# unchecked: 0
Set-ItemProperty -Path $k -Name 'DisableUPnPRegistrar' -Value 1 -Type DWord
# Turn off ability to configure using WCN over In-band 802.11 WLAN
# unchecked: 0
Set-ItemProperty -Path $k -Name 'DisableInBand802DOT11Registrar' -Value 1 -Type DWord
# Turn off ability to configure using a USB Flash Drive
# unchecked: 0
Set-ItemProperty -Path $k -Name 'DisableFlashConfigRegistrar' -Value 1 -Type DWord
# Turn off ability to configure Windows Portable Device (WPD)
# unchecked: 0
Set-ItemProperty -Path $k -Name 'DisableWPDRegistrar' -Value 1 -Type DWord
# Maximum number of WCN devices allowed
Set-ItemProperty -Path $k -Name 'MaxWCNDeviceNumber' -Value 500 -Type DWord  # maximum 65535
# Higher precedence medium for devices discovered by multiple media
# Possible options:
#   WCN over Ethernet (UPnP) = 1
#   WCN over In-band 802.11 WLAN = 2
Set-ItemProperty -Path $k -Name 'HigherPrecedenceRegistrar' -Value 1 -Type DWord

Disable

# Disable: WindowsConnectNow/WCN_EnableRegistrar
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableRegistrars' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": WindowsConnectNow/WCN_EnableRegistrar
$k = 'HKLM:\Software\Policies\Microsoft\Windows\WCN\Registrars'
Remove-ItemProperty -Path $k -Name 'EnableRegistrars' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DisableUPnPRegistrar' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DisableInBand802DOT11Registrar' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DisableFlashConfigRegistrar' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DisableWPDRegistrar' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'MaxWCNDeviceNumber' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'HigherPrecedenceRegistrar' -ErrorAction SilentlyContinue

Options (6)

LabelControlRegistry valueREG typeConstraints / details
Turn off ability to configure using WCN over Ethernet (UPnP)Désactiver la possibilité de configuration à l’aide de Windows Connect Now sur Ethernet (UPnP)WCN_EnableRegistrar_DisableUPnPCheck boxbooleanDisableUPnPRegistrarREG_DWORD
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0
Turn off ability to configure using WCN over In-band 802.11 WLANDésactiver la possibilité de configuration à l'aide de Windows Connect Now (WCN) sur WLAN 802.11 intrabandeWCN_EnableRegistrar_DisableInBand802DOT11Check boxbooleanDisableInBand802DOT11RegistrarREG_DWORD
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0
Turn off ability to configure using a USB Flash DriveDésactiver la possibilité de configuration à l’aide d’un lecteur Flash USBWCN_EnableRegistrar_DisableFlashConfigCheck boxbooleanDisableFlashConfigRegistrarREG_DWORD
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0
Turn off ability to configure Windows Portable Device (WPD)Désactiver la possibilité de configurer l’API WPD (Windows Portable Device)WCN_EnableRegistrar_DisableWPDCheck boxbooleanDisableWPDRegistrarREG_DWORD
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0
Maximum number of WCN devices allowed:Nombre maximal de périphériques Windows Connect Now autorisés :WCN_EnableRegistrar_MaxWCNDeviceNumberNumeric boxdecimalMaxWCNDeviceNumberREG_DWORD
Max: 65535 · Default (UI): 500
Higher precedence medium for devices discovered by multiple media:Média de précédence plus élevée pour les périphériques découverts par plusieurs médias :WCN_Higher_Precedence_RegistrarDrop-down listenumHigherPrecedenceRegistrarREG_DWORD
Default choice (UI): #0
LabelValue
WCN over Ethernet (UPnP)REG_DWORD = 1
WCN over In-band 802.11 WLANREG_DWORD = 2

Availability