Turn on the hover color option
Activer l’option de sélection par pointage
Explanation
This policy setting makes hyperlinks change color when the mouse pointer pauses on them.
If you enable this policy setting, the hover color option is turned on. The user cannot turn it off.
If you disable this policy setting, the hover color option is turned off. The user cannot turn it on.
If you do not configure this policy setting, the user can turn on or turn off the hover color option.
Ce paramètre de stratégie permet de modifier la couleur des liens hypertexte lorsque le pointeur de la souris s’arrête dessus.
Si vous activez ce paramètre de stratégie, l’option de sélection par pointage est activée. L’utilisateur ne peut pas la désactiver.
Si vous désactivez ce paramètre de stratégie, l’option de sélection par pointage est désactivée. L’utilisateur ne peut pas la réactiver.
Si vous ne configurez pas ce paramètre de stratégie, l’utilisateur peut activer ou désactiver l’option de sélection par pointage.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Settings- Value name
Use Anchor Hover Color
| State | Value written |
|---|---|
| Enabled | REG_SZ = yes |
| Disabled | REG_SZ = no |
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: inetres/UseHoverColor
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Use Anchor Hover Color' -Value 'yes' -Type StringDisable
# Disable: inetres/UseHoverColor
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Use Anchor Hover Color' -Value 'no' -Type StringRevert to "Not configured"
# Revert to "Not configured": inetres/UseHoverColor
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Settings'
Remove-ItemProperty -Path $k -Name 'Use Anchor Hover Color' -ErrorAction SilentlyContinue