Update-SPDataRetrievalServiceConfig

此 cmdlet 配置数据检索服务的设置。

语法

Update-SPDataRetrievalServiceConfig
      [-WebApplication] <SPWebApplicationPipeBind>
      [-Inherit]
      [-Enable <Boolean>]
      [-LimitResponseSize <Int32>]
      [-EnableUpdateSupport <Boolean>]
      [-DataSourceTimeout <Int32>]
      [-EnableDataSourceControls <Boolean>]
      [-AssignmentCollection <SPAssignmentCollection>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-SPDataRetrievalServiceConfig
      [-Farm]
      [-Enable <Boolean>]
      [-LimitResponseSize <Int32>]
      [-EnableUpdateSupport <Boolean>]
      [-DataSourceTimeout <Int32>]
      [-EnableDataSourceControls <Boolean>]
      [-AssignmentCollection <SPAssignmentCollection>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

说明

此 cmdlet 包含多个参数集。 您可以只使用来自一个参数集的参数,也可以不合并来自不同参数集的参数。 有关如何使用参数集的详细信息,请参阅 Cmdlet 参数集 (https://go.microsoft.com/fwlink/?LinkID=187810)。

有关 SharePoint 产品Windows PowerShell的权限和最新信息,请参阅 Windows PowerShell for SharePoint Server 2016 参考 (https://go.microsoft.com/fwlink/p/?LinkId=671715)的联机文档。

示例

--------------示例 1--------------

Update-SPDataRetrievalServiceConfig -Farm -Enable $false

此示例关闭场的数据检索服务。

--------------示例 2--------------

Update-SPDataRetrievalServiceConfig -WebApplication http://MyOfficeApp1 -Inherit

此示例使 Web 应用程序 MyOfficeApp1 能够继承全局设置。

-------------EXAMPLE 3-------------

Update-SPDataRetrievalServiceConfig -WebApplication http://MyOfficeApp1 -Enable $false

此示例关闭 Web 应用程序 MyOfficeApp1 的数据检索服务。

参数

-Confirm

执行命令前,看到确认提示。

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-DataSourceTimeout

将响应超时设置为第二个。

此设置适用于以下数据检索服务:

OLEDB/

SOAP Passthrough

XML-URL

SoapDataSource

XmlUrlDataSource

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Enable

@{Text=}

Type:Boolean
Position:Named
Default value:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-EnableDataSourceControls

在此服务器上启用或禁用数据源控件集。

此设置适用于以下数据源控件:

SPXmlDataSource

XmlUrlDataSource

SoapDataSource

AggregateDataSource

Type:Boolean
Position:Named
Default value:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-EnableUpdateSupport

启用或禁用对更新查询的支持。

此设置适用于以下数据检索服务:

OLEDB

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Farm

将设置应用到场,并将其应用于所有 SharePoint Web 应用程序都会继承该配置。

Type:SwitchParameter
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Inherit

设置是否继承场的全局设置。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-LimitResponseSize

数据源返回到数据检索服务的 SOAP 响应的最大大小(由 kB (KB) 指定)。

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WebApplication

将设置应用到指定的 SharePoint Web 应用程序。

Type:SPWebApplicationPipeBind
Position:1
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WhatIf

描述在执行命令而不实际执行命令的情况下会发生的情况。

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-工作分配

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition