Open in the explorer

Prohibit Drag-and-Drop

Empêcher le glisser-déplacer

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Windows Components › Task Scheduler FR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Planificateur de tâches
Supported on
Windows Server 2003, Windows XP, and Windows 2000 only FR: Windows Server 2003, Windows XP et Windows 2000 uniquement
ADMX file
TaskScheduler.admx
Internal name
TaskScheduler/DragAndDrop_1

Explanation

Prevents users from adding or removing tasks by moving or copying programs in the Scheduled Tasks folder.

This setting disables the Cut, Copy, Paste, and Paste Shortcut items on the context menu and the Edit menu in Scheduled Tasks. It also disables the drag-and-drop features of the Scheduled Tasks folder.

As a result, users cannot add new scheduled tasks by dragging, moving, or copying a document or program into the Scheduled tasks folder.

This setting does not prevent users from using other methods to create new tasks, and it does not prevent users from deleting tasks.

Note: This setting appears in the Computer Configuration and User Configuration folders. If both settings are configured, the setting in Computer Configuration takes precedence over the setting in User Configuration.

French text from Windows 11 26H2

Empêche les utilisateurs d'ajouter ou de supprimer des tâches en déplaçant ou en copiant des programmes dans le dossier Tâches planifiées.

Ce paramètre désactive les éléments Couper, Copier, Coller, et Coller le raccourci dans le menu contextuel et le menu Edition du dossier Tâches planifiées. Il désactive également les fonctionnalités de glisser-déplacer du dossier Tâches planifiées.

Par conséquent, les utilisateurs ne peuvent pas ajouter de nouvelles tâches planifiées en faisant glisser, en déplaçant ou en copiant un document ou un programme dans le dossier Tâches planifiées.

Ce paramètre n'empêche pas les utilisateurs de recourir à d'autres méthodes pour créer de nouvelles tâches, ni de supprimer des tâches.

Remarque : ce paramètre apparaît dans les dossiers Configuration de l'ordinateur et Configuration de l'utilisateur. Si les deux paramètres sont configurés, le paramètre défini dans Configuration de l'ordinateur prévaut sur le paramètre défini dans Configuration de l'utilisateur.

Registry

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Task Scheduler5.0
Value name
DragAndDrop
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: TaskScheduler/DragAndDrop_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Task Scheduler5.0'
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 'DragAndDrop' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: TaskScheduler/DragAndDrop_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Task Scheduler5.0'
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 'DragAndDrop' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": TaskScheduler/DragAndDrop_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Task Scheduler5.0'
Remove-ItemProperty -Path $k -Name 'DragAndDrop' -ErrorAction SilentlyContinue

Availability