Prevent changes to Taskbar and Start Menu Settings
Empêcher la modification des paramètres de la barre des tâches et du menu Démarrer
Explanation
This policy setting allows you to prevent changes to Taskbar and Start Menu Settings.
If you enable this policy setting, The user will be prevented from opening the Taskbar Properties dialog box.
If the user right-clicks the taskbar and then clicks Properties, a message appears explaining that a setting prevents the action.
If you disable or do not configure this policy setting, the Taskbar and Start Menu items are available from Settings on the Start menu.
Ce paramètre de stratégie vous permet d’empêcher les modifications dans la Barre des tâches et dans l’élément Paramètres du menu Démarrer.
Si vous activez ce paramètre de stratégie, l’utilisateur ne pourra pas ouvrir la boîte de dialogue Propriétés de la Barre des tâches.
Si l’utilisateur clique avec le bouton droit sur la barre des tâches puis sur Propriétés, un message s’affiche en indiquant qu’un paramètre empêche l’affichage.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les éléments Barre des tâches et menu Démarrer sont disponibles dans le menu Démarrer.
Registry
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\ExplorerHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
NoSetTaskbar
| 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.
Computer (HKLM)
Enable
# Enable: StartMenu/NoSetTaskbar
$k = 'HKLM:\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 'NoSetTaskbar' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: StartMenu/NoSetTaskbar
$k = 'HKLM:\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 'NoSetTaskbar' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": StartMenu/NoSetTaskbar
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'NoSetTaskbar' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"