Remove DFS tab
Supprimer l’onglet DFS
Explanation
This policy setting allows you to remove the DFS tab from File Explorer.
If you enable this policy setting, the DFS (Distributed File System) tab is removed from File Explorer and from other programs that use the File Explorer browser, such as My Computer. As a result, users cannot use this tab to view or change the properties of the DFS shares available from their computer.
This policy setting does not prevent users from using other methods to configure DFS.
If you disable or do not configure this policy setting, the DFS tab is available.
Ce paramètre de stratégie permet de supprimer l’onglet DFS de l’Explorateur de fichiers.
Si vous activez ce paramètre de stratégie, l’onglet DFS (Distributed File System) est supprimé de l’Explorateur de fichiers et d’autres programmes qui utilisent le navigateur de l’Explorateur de fichiers, comme par exemple Poste de travail. Par conséquent, les utilisateurs ne peuvent pas utiliser cet onglet pour afficher ou modifier les propriétés des partages DFS (Distributed File System) disponibles à partir de leur ordinateur.
Ce paramètre de stratégie ne les empêche pas d’employer d’autres méthodes pour configurer DFS.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, le paramètre DFS est disponible.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
NoDFSTab
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX |
| Disabled | not 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/NoDFSTab
$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 'NoDFSTab' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: WindowsExplorer/NoDFSTab
$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 'NoDFSTab' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsExplorer/NoDFSTab
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'NoDFSTab' -ErrorAction SilentlyContinue