Pin Libraries or Search Connectors to the "Search again" links and the Start menu
Épingler les bibliothèques ou les connecteurs de recherche aux liens Relancer la recherche et au menu Démarrer
Explanation
This policy setting allows up to five Libraries or Search Connectors to be pinned to the "Search again" links 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. To add a Library or Search Connector link, specify the path of the .Library-ms or .searchConnector-ms file in the "Location" text box (for example, "C:\sampleLibrary.Library-ms" for the Documents library, or "C:\sampleSearchConnector.searchConnector-ms" for a Search Connector). The pinned link will only work if this path is valid and the location contains the specified .Library-ms or .searchConnector-ms file.
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 included 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 Search Connectors/Libraries and pinned Internet/intranet search links. Search Connector/Library links take precedence over Internet/intranet search links.
If you enable this policy setting, the specified Libraries or Search Connectors will appear in the "Search again" links and the Start menu links.
If you disable or do not configure this policy setting, no Libraries or Search Connectors will appear in the "Search again" links or the Start menu links.
Ce paramètre de stratégie vous permet d’épingler jusqu’à cinq bibliothèques ou connecteurs de recherche aux liens « Relancer la recherche » et 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. Pour ajouter un lien Bibliothèque ou Connecteur de recherche, spécifiez le chemin d’accès du fichier .Library-ms ou .searchConnector-ms dans la zone de texte Emplacement (par exemple, « C:sampleLibrary.Library-ms » pour la bibliothèque Documents, ou « C:sampleSearchConnector.searchConnector-ms » pour un connecteur de recherche). Le lien épinglé ne fonctionne que si ce chemin d’accès est correct et que le fichier .Library-ms ou .searchConnector-ms se trouve à l’emplacement spécifié.
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 Connecteur de recherche/Bibliothèque épinglés et les liens de recherche Internet/intranet é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 bibliothèques ou les connecteurs de recherche 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, aucune bibliothèque ou aucun connecteur de recherche 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
TryHarderPinnedLibrary
| 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/TryHarderPinnedLibrary
$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 'TryHarderPinnedLibrary' -Value 1 -Type DWord
# Location 1
Set-ItemProperty -Path $k -Name 'Library0' -Value '<value>' -Type String
# Location 2
Set-ItemProperty -Path $k -Name 'Library1' -Value '<value>' -Type String
# Location 3
Set-ItemProperty -Path $k -Name 'Library2' -Value '<value>' -Type String
# Location 4
Set-ItemProperty -Path $k -Name 'Library3' -Value '<value>' -Type String
# Location 5
Set-ItemProperty -Path $k -Name 'Library4' -Value '<value>' -Type StringDisable
# Disable: WindowsExplorer/TryHarderPinnedLibrary
$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 'TryHarderPinnedLibrary' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsExplorer/TryHarderPinnedLibrary
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Explorer'
Remove-ItemProperty -Path $k -Name 'TryHarderPinnedLibrary' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Library0' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Library1' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Library2' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Library3' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Library4' -ErrorAction SilentlyContinueOptions (5)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Location 1Emplacement 1Library0 | Text boxtext | Library0 | REG_SZ | |
| Location 2Emplacement 2Library1 | Text boxtext | Library1 | REG_SZ | |
| Location 3Emplacement 3Library2 | Text boxtext | Library2 | REG_SZ | |
| Location 4Emplacement 4Library3 | Text boxtext | Library3 | REG_SZ | |
| Location 5Emplacement 5Library4 | Text boxtext | Library4 | REG_SZ |