Remove Task Manager
Supprimer le Gestionnaire des tâches
Explanation
This policy setting prevents users from starting Task Manager.
Task Manager (taskmgr.exe) lets users start and stop programs; monitor the performance of their computers; view and monitor all programs running on their computers, including system services; find the executable names of programs; and change the priority of the process in which programs run.
If you enable this policy setting, users will not be able to access Task Manager. If users try to start Task Manager, a message appears explaining that a policy prevents the action.
If you disable or do not configure this policy setting, users can access Task Manager to start and stop programs, monitor the performance of their computers, view and monitor all programs running on their computers, including system services, find the executable names of programs, and change the priority of the process in which programs run.
Ce paramètre de stratégie empêche les utilisateurs de démarrer le Gestionnaire des tâches.
Le Gestionnaire des tâches (taskmgr.exe) permet aux utilisateurs de démarrer et d’arrêter les programmes, d’analyser les performances de leur ordinateur, d’afficher et de surveiller tous les programmes en cours d’exécution sur l’ordinateur (dont les services système), de trouver le nom du fichier exécutable d’un programme et, enfin, de modifier la priorité du processus dans lequel un programme s’exécute.
Si vous activez ce paramètre de stratégie, les utilisateurs ne peuvent pas accéder au Gestionnaire des tâches. Lorsque les utilisateurs essaient de démarrer le Gestionnaire des tâches, un message s’affiche expliquant qu’un paramètre empêche cette action.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les utilisateurs peuvent accéder au Gestionnaire de tâches pour démarrer et arrêter des programmes, analyser les performances de leur ordinateur, afficher et surveiller tous les programmes en cours d’exécution sur l’ordinateur (dont les services système), trouver le nom du fichier exécutable d’un programme et, enfin, modifier la priorité du processus dans lequel un programme s’exécute.
Use cases
Prevents users from starting Task Manager (taskmgr.exe), which lets them end programs, monitor performance, see running processes and services, find executable names and change a process’s priority. An attempt displays a message saying a policy prevents the action.
It is a per-user setting, common on shared or locked-down machines. It also takes a troubleshooting tool away from the user: plan how to diagnose a stuck machine, since ending a frozen program then goes through support.
Microsoft source: Policy CSP - ADMX_CtrlAltDel
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System- Value name
DisableTaskMgr
| 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: CtrlAltDel/DisableTaskMgr
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
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 'DisableTaskMgr' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: CtrlAltDel/DisableTaskMgr
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
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 'DisableTaskMgr' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": CtrlAltDel/DisableTaskMgr
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
Remove-ItemProperty -Path $k -Name 'DisableTaskMgr' -ErrorAction SilentlyContinue