Open in the explorer

Add secondary intranet search locations

Ajouter des emplacements de recherche Intranet secondaires

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Search FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Rechercher
Supported on
Microsoft Windows XP, or Windows Server 2003 with Windows Search version 3.01 or later FR: Microsoft Windows XP ou Windows Server 2003 avec Windows Search version 3.01 ou ultérieure
ADMX file
Search.admx
Internal name
Search/AddSecondaryIntranetSearchScope

Explanation

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.

French text from 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.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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

Disable

# Disable: Search/AddSecondaryIntranetSearchScope
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Search/AddSecondaryIntranetSearchScope
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
Remove-ItemProperty -Path $k -Name 'SecondaryIntranetSearchScopeUrl' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Intranet Search Scope UrlUrl de la zone de recherche IntranetSecondaryIntranetSearchScopeUrlText boxtextSecondaryIntranetSearchScopeUrlREG_SZ

Availability