Pin Internet search sites to the "Search again" links and the Start menu
Épingler les sites de recherche Internet aux liens Relancer la recherche et au menu Démarrer
Explanation
This policy setting allows you to add Internet or intranet sites to the "Search again" links located at the bottom of search results in File Explorer and the Start menu links. The "Search again" links at the bottom of the Search Results view allow the user to reconduct a search but in a different location. The Internet search site will be searched with the text in the search box. To add an Internet search site, specify the URL of the search site in OpenSearch format with {searchTerms} for the query string (for example, http://www.example.com/results.aspx?q={searchTerms}).
You can add up to five additional links to the "Search again" links at the bottom of results returned in File Explorer after a search is executed. These links will be shared between Internet search sites and Search Connectors/Libraries. Search Connector/Library links take precedence over Internet search links.
The first several links will also be pinned to the Start menu. A total of four links can be pinned on the Start menu. The "See more results" link will be pinned first by default, unless it is disabled via Group Policy. The "Search the Internet" link is pinned second, if it is pinned via Group Policy (though this link is disabled by default). If a custom Internet search link is pinned using the "Custom Internet search provider" Group Policy, this link will be pinned third on the Start menu. The remaining link(s) will be shared between pinned Internet/intranet links and pinned Search Connectors/Libraries. Search Connector/Library links take precedence over Internet/intranet search links.
If you enable this policy setting, the specified Internet sites will appear in the "Search again" links and the Start menu links.
If you disable or do not configure this policy setting, no custom Internet search sites will be added to the "Search again" links or the Start menu links.
Ce paramètre de stratégie vous permet d’ajouter des sites Internet ou intranet aux liens Relancer la recherche situés en bas des résultats de recherche affichés dans l’Explorateur de fichiers ainsi qu’aux liens du menu Démarrer. Les liens « Relancer la recherche » situés en bas de la fenêtre Résultats de la recherche permettent à l’utilisateur d’effectuer la même recherche, mais à un autre emplacement. Le texte indiqué dans la zone de recherche est recherché sur le site de recherche Internet. Pour ajouter un site de recherche Internet, spécifiez l’URL du site en question au format OpenSearch en intégrant la variable {searchTerms} pour les termes recherchés (par exemple, http://www.example.com/results.aspx?q={searchTerms}).
Vous pouvez ajouter jusqu’à cinq liens supplémentaires aux liens Relancer la recherche situés en bas des résultats affichés dans l’Explorateur de fichiers. Ces liens seront partagés entre les sites de recherche Internet et les Connecteurs de recherche/Bibliothèques. Les liens Connecteur de recherche/Bibliothèque ont la priorité sur les liens de recherche Internet.
Les premiers liens, quatre au maximum, peuvent également être épinglés au menu Démarrer. Le lien « Voir plus de résultats » est épinglé en premier par défaut, sauf s’il est désactivé par le biais de la stratégie de groupe. Le lien « Rechercher sur Internet » est épinglé en deuxième, s’il est épinglé via la stratégie de groupe (ce lien est désactivé par défaut). Si un lien de recherche Internet personnalisée est épinglé par le biais de la stratégie de groupe « Fournisseur de recherche personnalisée sur Internet », ce lien est épinglé en troisième dans le menu Démarrer. Les autres liens sont partagés entre les liens Internet/intranet épinglés et les liens Connecteur de recherche/Bibliothèque épinglés. Les liens Connecteur de recherche/Bibliothèque ont la priorité sur les liens de recherche Internet/intranet.
Si vous activez ce paramètre de stratégie, les sites Internet spécifiés sont affichés dans les liens « Relancer la recherche » et dans les liens du menu Démarrer.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, aucun site de recherche Internet personnalisée n’est ajouté aux liens « Relancer la recherche » ou aux liens du menu Démarrer.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer- Value name
TryHarderPinnedOpenSearch
| 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.
Enable
# Enable: WindowsExplorer/TryHarderPinnedOpenSearch
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'TryHarderPinnedOpenSearch' -Value 1 -Type DWord
# Site URL 1
Set-ItemProperty -Path $k -Name 'OpenSearch0' -Value '<value>' -Type String
# Site Name 1
Set-ItemProperty -Path $k -Name 'OpenSearchLabel0' -Value '<value>' -Type String
# Site URL 2
Set-ItemProperty -Path $k -Name 'OpenSearch1' -Value '<value>' -Type String
# Site Name 2
Set-ItemProperty -Path $k -Name 'OpenSearchLabel1' -Value '<value>' -Type String
# Site URL 3
Set-ItemProperty -Path $k -Name 'OpenSearch2' -Value '<value>' -Type String
# Site Name 3
Set-ItemProperty -Path $k -Name 'OpenSearchLabel2' -Value '<value>' -Type String
# Site URL 4
Set-ItemProperty -Path $k -Name 'OpenSearch3' -Value '<value>' -Type String
# Site Name 4
Set-ItemProperty -Path $k -Name 'OpenSearchLabel3' -Value '<value>' -Type String
# Site URL 5
Set-ItemProperty -Path $k -Name 'OpenSearch4' -Value '<value>' -Type String
# Site Name 5
Set-ItemProperty -Path $k -Name 'OpenSearchLabel4' -Value '<value>' -Type StringDisable
# Disable: WindowsExplorer/TryHarderPinnedOpenSearch
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'TryHarderPinnedOpenSearch' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsExplorer/TryHarderPinnedOpenSearch
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Explorer'
Remove-ItemProperty -Path $k -Name 'TryHarderPinnedOpenSearch' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'OpenSearch0' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'OpenSearchLabel0' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'OpenSearch1' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'OpenSearchLabel1' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'OpenSearch2' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'OpenSearchLabel2' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'OpenSearch3' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'OpenSearchLabel3' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'OpenSearch4' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'OpenSearchLabel4' -ErrorAction SilentlyContinueOptions (10)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Site URL 1URL du site 1OpenSearch0 | Text boxtext | OpenSearch0 | REG_SZ | |
| Site Name 1Nom du site 1OpenSearchLabel0 | Text boxtext | OpenSearchLabel0 | REG_SZ | |
| Site URL 2URL du site 2OpenSearch1 | Text boxtext | OpenSearch1 | REG_SZ | |
| Site Name 2Nom du site 2OpenSearchLabel1 | Text boxtext | OpenSearchLabel1 | REG_SZ | |
| Site URL 3URL du site 3OpenSearch2 | Text boxtext | OpenSearch2 | REG_SZ | |
| Site Name 3Nom du site 3OpenSearchLabel2 | Text boxtext | OpenSearchLabel2 | REG_SZ | |
| Site URL 4URL du site 4OpenSearch3 | Text boxtext | OpenSearch3 | REG_SZ | |
| Site Name 4Nom du site 4OpenSearchLabel3 | Text boxtext | OpenSearchLabel3 | REG_SZ | |
| Site URL 5URL du site 5OpenSearch4 | Text boxtext | OpenSearch4 | REG_SZ | |
| Site Name 5Nom du site 5OpenSearchLabel4 | Text boxtext | OpenSearchLabel4 | REG_SZ |