Open in the explorer

Prevent adding, dragging, dropping and closing the Taskbar's toolbars

Empêcher l’ajout, le glisser-déplacer et la fermeture des barres d’outils de la Barre des tâches

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Desktop FR: Configuration utilisateur › Stratégies › Modèles d'administration › Bureau
Supported on
At least Windows 2000 FR: Au minimum Windows 2000
ADMX file
Desktop.admx
Internal name
Desktop/sz_DB_DragDropClose

Explanation

Prevents users from manipulating desktop toolbars.

If you enable this setting, users cannot add or remove toolbars from the desktop. Also, users cannot drag toolbars on to or off of docked toolbars.

Note: If users have added or removed toolbars, this setting prevents them from restoring the default configuration.

Tip: To view the toolbars that can be added to the desktop, right-click a docked toolbar (such as the taskbar beside the Start button), and point to "Toolbars."

Also, see the "Prohibit adjusting desktop toolbars" setting.

French text from Windows 11 26H2

Empêche l’utilisateur de manipuler les barres d’outils du Bureau.

Si vous activez ce paramètre, les utilisateurs ne peuvent pas ajouter ou supprimer de barres d’outils sur le Bureau. En outre, les utilisateurs ne peuvent pas faire glisser de barres d’outils dans et en dehors des barres d’outils ancrées.

Remarque : si les utilisateurs ont ajouté ou supprimé des barres d’outils, ce paramètre les empêche de restaurer la configuration par défaut.

Astuce : pour afficher les barres d’outils qui peuvent être ajoutées au Bureau, cliquez avec le bouton droit sur une barre d’outils ancrée (par exemple la barre des tâches située en regard du bouton Démarrer), puis choisissez « Barres d’outils ».

Consultez également le paramètre « Empêcher le redimensionnement des barres d’outils du Bureau ».

Registry

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Value name
NoCloseDragDropBands
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/sz_DB_DragDropClose
$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 'NoCloseDragDropBands' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: Desktop/sz_DB_DragDropClose
$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 'NoCloseDragDropBands' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

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

Availability