Ouvrir dans l'explorateur

Ajouter des emplacements de recherche Intranet secondaires

Add secondary intranet search locations

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Rechercher EN : Computer Configuration › Policies › Administrative Templates › Windows Components › Search
Pris en charge sur
Microsoft Windows XP ou Windows Server 2003 avec Windows Search version 3.01 ou ultérieure EN : Microsoft Windows XP, or Windows Server 2003 with Windows Search version 3.01 or later
Fichier ADMX
Search.admx
Nom interne
Search/AddSecondaryIntranetSearchScope

Explication

Texte français issu de Windows 11 26H2

L’activation de cette stratégie permet d’ajouter des emplacements de recherche intranet en plus de l’emplacement de recherche intranet principal défini dans la stratégie Ajouter un emplacement de recherche Intranet principal. Ce texte doit avoir la valeur suivante :

nom1,url1;nom2,url2;...nomN,urlN

Par exemple :

MySearch,http://mysearch.aspx?q=$w;MySearch2,http://mysearch2?q=$w.

Pour chaque zone de recherche, indiquez les éléments suivants :
1) Nom de la zone, tel que 'IT Web'.
2) URL du service de recherche. Utilisez $w à la place du mot recherché pour l’URL du service de recherche.

Si votre service de recherche intranet est SharePoint Portal Server, votre requête doit ressembler à ce qui suit :
http://nom_site/Search.aspx?k=$w

Si votre service de recherche intranet est Windows SharePoint Services (WSS), la requête doit ressembler à ce qui suit, où XXXX correspond à l’ID de paramètres régionaux de votre service WSS. Par exemple, l’ID des paramètres régionaux français est 1036.
http://nom_site/_layouts/XXXX/searchresults.aspx?SearchString=$w

Ces emplacements de recherche intranet supplémentaires sont ajoutés à la liste Tous les emplacements des résultats Windows Search.

Enabling this policy allows you to add intranet search locations in addition to the primary intranet search location defined in the Add Primary Intranet Search Location policy. The value of this text should be:

name1,url1;name2,url2;...nameN,urlN

For example:

MySearch,http://mysearch.aspx?q=$w;MySearch2,http://mysearch2?q=$w.

For each search scope, provide:
1) A name for the scope, such as 'IT Web'.
2) The URL to the search service. Use $w in place of the query term for the search service URL.

If your intranet search service is SharePoint Portal Server, your query should resemble the following:
http://sitename/Search.aspx?k=$w

If your intranet search service is Windows SharePoint Services (WSS), the query should resemble the following, where XXXX is the locale ID of your WSS Service. For example, the English locale ID is 1033.
http://sitename/_layouts/XXXX/searchresults.aspx?SearchString=$w

These additional intranet search locations are added to the All Locations list in the Desktop Search results.

Registre

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search
Nom de la valeur
non défini dans l'ADMX

Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).

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 : Search/AddSecondaryIntranetSearchScope
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Url de la zone de recherche Intranet
Set-ItemProperty -Path $k -Name 'SecondaryIntranetSearchScopeUrl' -Value '<valeur>' -Type String

Désactiver

# Désactiver : Search/AddSecondaryIntranetSearchScope
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

# Revenir à « Non configuré » : Search/AddSecondaryIntranetSearchScope
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
Remove-ItemProperty -Path $k -Name 'SecondaryIntranetSearchScopeUrl' -ErrorAction SilentlyContinue

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
Url de la zone de recherche IntranetIntranet Search Scope UrlSecondaryIntranetSearchScopeUrlZone de textetextSecondaryIntranetSearchScopeUrlREG_SZ

Disponibilité