Do not allow pinning items in Jump Lists
Ne pas autoriser l’épinglage d’éléments aux listes de raccourcis
Explanation
This policy setting allows you to control pinning items in Jump Lists.
If you enable this policy setting, users cannot pin files, folders, websites, or other items to their Jump Lists in the Start Menu and Taskbar. Users also cannot unpin existing items pinned to their Jump Lists. Existing items already pinned to their Jump Lists will continue to show.
If you disable or do not configure this policy setting, users can pin files, folders, websites, and other items to a program's Jump List so that the items is always present in this menu.
Ce paramètre de stratégie vous permet de contrôler l’épinglage d’éléments dans des listes de raccourcis.
Si vous activez ce paramètre de stratégie, les utilisateurs ne peuvent pas épingler de fichiers, de dossiers, de sites Web, ni aucun autre élément à leurs listes de raccourcis dans le menu Démarrer et la barre des tâches. Ils ne peuvent pas non plus détacher les éléments existants épinglés à leurs listes de raccourcis. Les éléments existants déjà épinglés à leurs listes de raccourcis continuent de s’afficher.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les utilisateurs peuvent épingler des fichiers, des dossiers, des sites Web et d’autres éléments à la liste de raccourcis d’un programme, afin que ces éléments soient toujours présents dans ce menu.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer- Value name
NoPinningToDestinations
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
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: Taskbar/NoPinningToDestinations
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoPinningToDestinations' -Value 1 -Type DWordDisable
# Disable: Taskbar/NoPinningToDestinations
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoPinningToDestinations' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Taskbar/NoPinningToDestinations
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Explorer'
Remove-ItemProperty -Path $k -Name 'NoPinningToDestinations' -ErrorAction SilentlyContinue