Open in the explorer

No Computers Near Me in Network Locations

Ne pas afficher « Ordinateurs proches » dans les emplacements réseau

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Windows Components › File Explorer FR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Explorateur de fichiers
Supported on
Windows Server 2003, Windows XP, and Windows 2000 only FR: Windows Server 2003, Windows XP et Windows 2000 uniquement
ADMX file
WindowsExplorer.admx
Internal name
WindowsExplorer/NoWorkgroupContents

Explanation

This policy setting allows you to remove computers in the user's workgroup and domain from lists of network resources in File Explorer and Network Locations.

If you enable this policy setting, the system removes the "Computers Near Me" option and the icons representing nearby computers from Network Locations. This policy setting also removes these icons from the Map Network Drive browser.

If you disable or do not configure this policy setting, computers in the user's workgroup and domain appear in lists of network resources in File Explorer and Network Locations.

This policy setting does not prevent users from connecting to computers in their workgroup or domain by other commonly used methods, such as typing the share name in the Run dialog box or the Map Network Drive dialog box.

To remove network computers from lists of network resources, use the "No Entire Network in Network Locations" policy setting.

French text from Windows 11 26H2

Ce paramètre de stratégie permet de supprimer les ordinateurs du groupe de travail ou du domaine de l’utilisateur des listes de ressources réseau affichées dans l’Explorateur de fichiers et dans les emplacements réseau.

Si vous activez ce paramètre de stratégie, le système supprime des emplacements réseau l’option « Ordinateurs proches du mien » et les icônes représentant les ordinateurs proches. Ce paramètre de stratégie supprime également ces icônes de l’option Connecter un lecteur réseau de l’Explorateur.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les ordinateurs du groupe de travail ou du domaine de l’utilisateur apparaissent dans des listes de ressources réseau dans l’Explorateur de fichiers et dans les emplacements réseau.

Ce paramètre de stratégie n’empêche pas les utilisateurs de se connecter aux ordinateurs de leur groupe de travail ou du domaine par d’autres méthodes couramment utilisées, par exemple en tapant le nom du partage dans les boîtes de dialogue Exécuter ou Connecter un lecteur réseau.

Pour supprimer les ordinateurs réseau des listes de ressources réseau, utilisez le paramètre de stratégie « Ne pas afficher « Tout le réseau » dans les emplacements réseau ».

Registry

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Value name
NoComputersNearMe
StateValue written
Enablednot defined in the ADMX
Disablednot defined in the ADMX

PowerShell

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

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

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: WindowsExplorer/NoWorkgroupContents
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoComputersNearMe' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: WindowsExplorer/NoWorkgroupContents
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoComputersNearMe' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": WindowsExplorer/NoWorkgroupContents
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'NoComputersNearMe' -ErrorAction SilentlyContinue

Availability