共用方式為


SearchScopes

Applies To: Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista

SearchScopes specifies Internet search providers.

During unattended installation, SearchScopes adds search providers to the default list of search providers, but does not overwrite user-chosen providers.

Note

If the user performs an upgrade to the operating system, the existing search providers from the previous operating system installation are maintained. The search providers that the unattended-installation answer file specifies are applied only when the user clicks Restore Defaults.

Child Elements

Scope

Specifies a search provider.

Valid Configuration Passes

specialize

Parent Hierarchy

Microsoft-Windows-IE-InternetExplorer | SearchScopes

Applies To

For a list of which Search Scope settings are available in each version of Internet Explorer®, see Scope.

For a list of the Windows® editions and architectures that this component supports, see Microsoft-Windows-IE-InternetExplorer.

XML Example

The following example shows how to set search providers.

<SearchScopes>
   <Scope wcm:action="add">
      <ScopeDefault>true</ScopeDefault>
      <ScopeDisplayName>MyFirstSearchProvider</ScopeDisplayName>
      <ScopeKey>SearchProvider1</ScopeKey>
      <ScopeUrl>https://www.contoso.com/search?q={searchTerms}</ScopeUrl>
   </Scope>
   <Scope wcm:action="add">
      <ScopeDisplayName>MySecondSearchProvider</ScopeDisplayName>
      <ScopeKey>SearchProvider2</ScopeKey>
      <ScopeUrl>http://search.fabrikam.com/results.aspx?q=&quot;{searchTerms}&quot;</ScopeUrl>
   </Scope>
</SearchScopes>

See Also

Concepts

Microsoft-Windows-IE-InternetExplorer