Do not display network selection UI
Ne pas afficher l’interface utilisateur de sélection de réseau
Explanation
This policy setting allows you to control whether anyone can interact with available networks UI on the logon screen.
If you enable this policy setting, the PC's network connectivity state cannot be changed without signing into Windows.
If you disable or don't configure this policy setting, any user can disconnect the PC from the network or can connect the PC to other available networks without signing into Windows.
Ce paramètre de stratégie vous permet de contrôler s’il est possible d’interagir avec l’interface utilisateur des réseaux disponibles dans l’écran d’ouverture de session.
Si vous activez ce paramètre de stratégie, l’état de connectivité réseau du PC ne peut pas être modifié sans se connecter à Windows.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, tout utilisateur peut déconnecter le PC du réseau ou peut connecter le PC à d’autres réseaux disponibles sans se connecter à Windows.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System- Value name
DontDisplayNetworkSelectionUI
| 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: Logon/DontDisplayNetworkSelectionUI
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DontDisplayNetworkSelectionUI' -Value 1 -Type DWordDisable
# Disable: Logon/DontDisplayNetworkSelectionUI
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DontDisplayNetworkSelectionUI' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Logon/DontDisplayNetworkSelectionUI
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
Remove-ItemProperty -Path $k -Name 'DontDisplayNetworkSelectionUI' -ErrorAction SilentlyContinue