Add secondary intranet search locations
Ajouter des emplacements de recherche Intranet secondaires
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.
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 StringDisable
# 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 SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Intranet Search Scope UrlUrl de la zone de recherche IntranetSecondaryIntranetSearchScopeUrl | Text boxtext | SecondaryIntranetSearchScopeUrl | REG_SZ |