Turn off phone number detection
Désactiver la détection des numéros de téléphone
Explanation
This policy setting determines whether phone numbers are recognized and turned into hyperlinks, which can be used to invoke the default phone application on the system.
If you enable this policy setting, phone number detection is turned off. Users won't be able to modify this setting.
If you disable this policy setting, phone number detection is turned on. Users won't be able to modify this setting.
If you don't configure this policy setting, users can turn this behavior on or off, using Internet Explorer settings. The default is on.
Ce paramètre de stratégie détermine si les numéros de téléphone sont reconnus et transformés en liens hypertexte, ce qui permet d’appeler l’application téléphonique par défaut du système.
Si vous activez ce paramètre de stratégie, la détection des numéros de téléphone est désactivée. Les utilisateurs ne peuvent pas modifier ce paramètre.
Si vous désactivez ce paramètre de stratégie, la détection des numéros de téléphone est activée. Les utilisateurs ne peuvent pas modifier ce paramètre.
Si vous ne configurez pas ce paramètre de stratégie, les utilisateurs peuvent activer ou désactiver ce comportement via les paramètres d’Internet Explorer. Ce paramètre est activé par défaut.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Main\FormatDetectionHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main\FormatDetection- Value name
PhoneNumberEnabled
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 0 |
| Disabled | REG_DWORD = 1 |
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/TurnOffFormatDetectionPhone
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FormatDetection'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PhoneNumberEnabled' -Value 0 -Type DWordDisable
# Disable: inetres/TurnOffFormatDetectionPhone
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FormatDetection'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PhoneNumberEnabled' -Value 1 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/TurnOffFormatDetectionPhone
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main\FormatDetection'
Remove-ItemProperty -Path $k -Name 'PhoneNumberEnabled' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"