Prevent configuration of search on Address bar
Empêcher la configuration de la recherche dans la barre d’adresses
Explanation
This policy setting specifies whether the user can conduct a search on the Address bar.
If you enable this policy setting, you must specify which of the following actions applies to searches on the Address bar. The user cannot change the specified action.
• Do not search from the Address bar: The user cannot use the Address bar for searches. The user can still perform searches on the Search bar by clicking the Search button.
• Display the results in the main window: When the user searches on the Address bar, the list of search results is displayed in the main window.
If you disable or do not configure this policy setting, the user can specify what action applies to searches on the Address bar.
Ce paramètre de stratégie spécifie si l’utilisateur peut effectuer une recherche dans la barre d’adresses.
Si vous activez ce paramètre de stratégie, vous devez spécifier les actions qui s’appliquent aux recherches effectuées dans la barre d’adresses. L’utilisateur ne peut pas modifier l’action spécifiée.
• Ne pas effectuer de recherche à partir de la barre d’adresses : l’utilisateur ne peut pas utiliser la barre d’adresses pour effectuer des recherches. L’utilisateur peut toujours effectuer des recherches dans le volet de recherche en cliquant sur le bouton Rechercher.
• Afficher les résultats dans la fenêtre principale : lorsque l’utilisateur effectue des recherches dans la barre d’adresses, la liste des résultats de la recherche est affichée dans la fenêtre principale.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, l’utilisateur peut spécifier l’action qui est appliquée aux recherches dans la barre d’adresses.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\MainHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
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/URLFailsPol
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# When searching from the address bar
# Possible options:
# Display the results in the main window = 4
# Do not search from the address bar = 0
Set-ItemProperty -Path $k -Name 'AutoSearch' -Value 4 -Type DWordDisable
# Disable: inetres/URLFailsPol
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": inetres/URLFailsPol
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
Remove-ItemProperty -Path $k -Name 'AutoSearch' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| When searching from the address bar:Rechercher à partir de la barre d’adresses :URLFails | Drop-down listenum | AutoSearch | REG_DWORD | Default choice (UI): #0
|