Ouvrir dans l'explorateur

Épingler les bibliothèques ou les connecteurs de recherche aux liens Relancer la recherche et au menu Démarrer

Pin Libraries or Search Connectors to the "Search again" links and the Start menu

Type
Utilisateur
Chemin GPO
Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Explorateur de fichiers EN : User Configuration › Policies › Administrative Templates › Windows Components › File Explorer
Pris en charge sur
Au minimum Windows Server 2008 R2 ou Windows 7 EN : At least Windows Server 2008 R2 or Windows 7
Fichier ADMX
WindowsExplorer.admx
Nom interne
WindowsExplorer/TryHarderPinnedLibrary

Explication

Texte français issu de Windows 11 26H2

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.

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.

Registre

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer
Nom de la valeur
TryHarderPinnedLibrary
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : 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
# Emplacement 1
Set-ItemProperty -Path $k -Name 'Library0' -Value '<valeur>' -Type String
# Emplacement 2
Set-ItemProperty -Path $k -Name 'Library1' -Value '<valeur>' -Type String
# Emplacement 3
Set-ItemProperty -Path $k -Name 'Library2' -Value '<valeur>' -Type String
# Emplacement 4
Set-ItemProperty -Path $k -Name 'Library3' -Value '<valeur>' -Type String
# Emplacement 5
Set-ItemProperty -Path $k -Name 'Library4' -Value '<valeur>' -Type String

Désactiver

# Désactiver : 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 DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : 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 SilentlyContinue

Options (5)

LibelléContrôleValeur de registreType REGContraintes / détails
Emplacement 1Location 1Library0Zone de textetextLibrary0REG_SZ
Emplacement 2Location 2Library1Zone de textetextLibrary1REG_SZ
Emplacement 3Location 3Library2Zone de textetextLibrary2REG_SZ
Emplacement 4Location 4Library3Zone de textetextLibrary3REG_SZ
Emplacement 5Location 5Library4Zone de textetextLibrary4REG_SZ

Disponibilité