Turn off ability to pin sites in Internet Explorer on the desktop
Désactiver la capacité à épingler les sites dans Internet Explorer sur le Bureau.
Explanation
This policy setting allows you to manage whether users can pin sites to locations where pinning is allowed, such as the taskbar, the desktop, or File Explorer.
If you enable this policy setting, users cannot pin sites.
If you disable or do not configure this policy setting, users can pin sites.
Ce paramètre de stratégie vous permet de déterminer si les utilisateurs peuvent épingler des sites aux emplacements où cette action est autorisée, par exemple la barre des tâches, le Bureau ou l’Explorateur de fichiers.
Si vous activez ce paramètre de stratégie, les utilisateurs ne peuvent pas épingler les sites.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les utilisateurs peuvent épingler les sites.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\MainHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main- Value name
DisableAddSiteMode
| 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.
Computer (HKLM)
Enable
# Enable: inetres/TurnOffPinnedSites
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableAddSiteMode' -Value 1 -Type DWordDisable
# Disable: inetres/TurnOffPinnedSites
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableAddSiteMode' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/TurnOffPinnedSites
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
Remove-ItemProperty -Path $k -Name 'DisableAddSiteMode' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"