Open in the explorer

Hide Active Directory folder

Cacher le dossier Active Directory

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Desktop › Active Directory FR: Configuration utilisateur › Stratégies › Modèles d'administration › Bureau › Active Directory
Supported on
Windows 2000 only FR: Windows 2000 uniquement
ADMX file
Desktop.admx
Internal name
Desktop/AD_HideDirectoryFolder

Explanation

Hides the Active Directory folder in Network Locations.

The Active Directory folder displays Active Directory objects in a browse window.

If you enable this setting, the Active Directory folder does not appear in the Network Locations folder.

If you disable this setting or do not configure it, the Active Directory folder appears in the Network Locations folder.

This setting is designed to let users search Active Directory but not tempt them to casually browse Active Directory.

French text from Windows 11 26H2

Masque le dossier Active Directory dans Emplacements réseau.

Le dossier Active Directory affiche les objets Active Directory dans une fenêtre d’exploration.

Si vous activez ce paramètre, le dossier Active Directory n’apparaît plus dans le dossier Emplacements réseau.

Si vous désactivez ce paramètre ou ne le configurez pas, le dossier Active Directory apparaît dans le dossier Emplacements réseau.

Ce paramètre est conçu pour permettre aux utilisateurs d’effectuer des recherches dans Active Directory, mais éviter qu’ils soient tentés de naviguer dans ses objets.

Registry

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Directory UI
Value name
HideDirectoryFolder
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: Desktop/AD_HideDirectoryFolder
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Directory UI'
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 'HideDirectoryFolder' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: Desktop/AD_HideDirectoryFolder
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Directory UI'
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 'HideDirectoryFolder' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Desktop/AD_HideDirectoryFolder
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Directory UI'
Remove-ItemProperty -Path $k -Name 'HideDirectoryFolder' -ErrorAction SilentlyContinue

Availability