Prevent changing the default search provider
Empêcher la modification du moteur de recherche par défaut
Explanation
This policy setting prevents the user from changing the default search provider for the Address bar and the toolbar Search box.
If you enable this policy setting, the user cannot change the default search provider.
If you disable or do not configure this policy setting, the user can change the default search provider.
Ce paramètre de stratégie empêche l’utilisateur de modifier le moteur de recherche par défaut pour la barre d’adresses et la zone de recherche de la barre d’outils.
Si vous activez ce paramètre de stratégie, l’utilisateur ne peut pas modifier le moteur de recherche par défaut.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, l’utilisateur peut modifier le moteur de recherche par défaut.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Infodelivery\RestrictionsHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Infodelivery\Restrictions- Value name
NoChangeDefaultSearchProvider
| 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/NoSearchProvider
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Infodelivery\Restrictions'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoChangeDefaultSearchProvider' -Value 1 -Type DWordDisable
# Disable: inetres/NoSearchProvider
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Infodelivery\Restrictions'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoChangeDefaultSearchProvider' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/NoSearchProvider
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Infodelivery\Restrictions'
Remove-ItemProperty -Path $k -Name 'NoChangeDefaultSearchProvider' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"