Prohibit New Task Creation
Empêcher la création de nouvelle tâche
Explanation
Prevents users from creating new tasks.
This setting removes the Add Scheduled Task item that starts the New Task Wizard. Also, the system does not respond when users try to move, paste, or drag programs or documents into the Scheduled Tasks folder.
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.
Important: This setting does not prevent administrators of a computer from using At.exe to create new tasks or prevent administrators from submitting tasks from remote computers.
Empêche les utilisateurs de créer de nouvelles tâches.
Ce paramètre supprime l'élément Création d'une tâche planifiée qui démarre l'Assistant Nouvelle tâche. En outre, le système ne répond pas lorsque les utilisateurs essaient de déplacer, de coller ou de faire glisser des programmes ou documents dans le dossier Tâches planifiées.
Remarque : ce paramètre apparaît dans les dossiers Configuration ordinateur et Configuration utilisateur. Si les deux paramètres sont configurés, le paramètre défini dans Configuration ordinateur prévaut sur le paramètre défini dans Configuration utilisateur.
Important : ce paramètre n'empêche pas les administrateurs d'un ordinateur d'utiliser la commande At.exe pour créer de nouvelles tâches, ni de créer des tâches à partir d'ordinateurs distants.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Task Scheduler5.0- Value name
Task Creation
| 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: TaskScheduler/TaskCreation_2
$k = 'HKLM:\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 'Task Creation' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: TaskScheduler/TaskCreation_2
$k = 'HKLM:\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 'Task Creation' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": TaskScheduler/TaskCreation_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Task Scheduler5.0'
Remove-ItemProperty -Path $k -Name 'Task Creation' -ErrorAction SilentlyContinue