Prohibit access of the Windows Connect Now wizards
Interdire l’accès aux Assistants Windows Connect Now
Explanation
This policy setting prohibits access to Windows Connect Now (WCN) wizards.
If you enable this policy setting, the wizards are turned off and users have no access to any of the wizard tasks. All the configuration related tasks, including "Set up a wireless router or access point" and "Add a wireless device" are disabled.
If you disable or do not configure this policy setting, users can access the wizard tasks, including "Set up a wireless router or access point" and "Add a wireless device." The default for this policy setting allows users to access all WCN wizards.
Ce paramètre de stratégie interdit l’accès aux Assistants Windows Connect Now.
Si vous activez ce paramètre de stratégie, les Assistants sont désactivés et les utilisateurs n’ont accès à aucune des tâches des Assistants. Toutes les tâches liées à la configuration, notamment la configuration d’un routeur ou d’un point d’accès sans fil et l’ajout d’un périphérique sans fil, sont désactivées.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les utilisateurs peuvent accéder aux tâches des Assistants, notamment la configuration d’un routeur ou d’un point d’accès sans fil et l’ajout d’un périphérique sans fil. La valeur par défaut de ce paramètre de stratégie autorise les utilisateurs à accéder à tous les Assistants Windows Connect Now.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WCN\UI- Value name
DisableWcnUi
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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_DisableWcnUi_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows\WCN\UI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableWcnUi' -Value 1 -Type DWordDisable
# Disable: WindowsConnectNow/WCN_DisableWcnUi_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows\WCN\UI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableWcnUi' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsConnectNow/WCN_DisableWcnUi_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows\WCN\UI'
Remove-ItemProperty -Path $k -Name 'DisableWcnUi' -ErrorAction SilentlyContinue