Set-SPWorkManagementServiceApplication

配置工作管理服务应用程序的设置。

语法

Set-SPWorkManagementServiceApplication
   [-Identity] <SPWorkManagementServiceCmdletPipeBind>
   [-ApplicationPool <SPIisWebServiceApplicationPoolPipeBind>]
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Confirm]
   [-MinimumTimeBetweenProviderRefreshes <TimeSpan>]
   [-MinimumTimeBetweenSearchQueries <TimeSpan>]
   [-Name <String>]
   [-WhatIf]
   [-MinimumTimeBetweenEwsSyncSubscriptionSearches <TimeSpan>]
   [-NumberOfSubscriptionSyncsPerEwsSyncRun <UInt32>]
   [-NumberOfUsersEwsSyncWillProcessAtOnce <UInt32>]
   [-NumberOfUsersPerEwsSyncBatch <UInt32>]
   [<CommonParameters>]

说明

Set-SPWorkManagementServiceApplication使用 cmdlet 设置设置 (即,用于聚合任务的刷新和每台计算机的负载之间的最短时间,以便使用标识参数与指定工作管理服务应用程序的 Exchange) 进行同步。

有关适用于 SharePoint 产品的 Windows PowerShell 的权限和最新信息,请参阅 SharePoint Server cmdlet

示例

---------------示例---------------

C:\PS>$wmservice = Get-SPServiceApplication -Name "Work Management Service Application"

C:\PS>$refreshTime = New-Timespan -Minutes 10

Set-SPWorkManagementServiceApplication -Identity $wmservice -MinimumTimeBetweenProviderRefreshes $refreshTime

本示例将名为“Work Management Service Application”的服务应用程序上提供程序刷新之间的最短时间设置为 10 分钟。

参数

-ApplicationPool

指定要使用的应用程序池的名称;例如,SharePoint - 1213。 如果未指定任何值,则使用默认应用程序池。

Type:SPIisWebServiceApplicationPoolPipeBind
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-Confirm

执行命令前,看到确认提示。 有关详细信息,请键入以下命令:get-help about_commonparameters

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

-Identity

指定要更新的服务应用程序。

键入的值必须为 12345678-90ab-cdef-1234-567890bcdefgh 形式的有效 GUID;Subscription Settings Service 应用程序的有效名称(例如,SubSettingsApp1);或有效 SPWorkManagementServiceApplication 对象的实例。

Type:SPWorkManagementServiceCmdletPipeBind
Position:1
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-MinimumTimeBetweenEwsSyncSubscriptionSearches

此值指定尝试查找要同步 EWS 任务的新租户的调用到例程之间的最短时间。

Type:TimeSpan
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-MinimumTimeBetweenProviderRefreshes

指定每个用户缓存更新操作之间的最短时间。 如果自用户上次成功刷新请求以来,此时间未通过,则服务应用程序不会执行新的刷新请求。

Type:TimeSpan
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-MinimumTimeBetweenSearchQueries

指定调用搜索服务应用程序以发现用户有任务的新 SharePoint 任务列表之间的最短时间。 如果自上次成功调用搜索用户以来,此时间未通过,则服务应用程序不会在刷新操作期间调用搜索。

Type:TimeSpan
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-NumberOfSubscriptionSyncsPerEwsSyncRun

此值指定服务将尝试通过每个计时器作业间隔通过 EWS 同步的最大租户数

Type:UInt32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-NumberOfUsersEwsSyncWillProcessAtOnce

此值指定服务实例计算机在所有租户中一次通过 EWS 同步的最大用户数。

Type:UInt32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-NumberOfUsersPerEwsSyncBatch

此值指定服务实例将尝试通过每个计时器作业间隔的 EWS 在给定租户上同步的最大用户数

Type:UInt32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-WhatIf

显示一条描述命令作用的消息,而不执行命令。 有关详细信息,请键入以下命令:get-help about_commonparameters

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

-名称

指定工作管理服务应用程序的名称。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016

-工作分配

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 2013, SharePoint Server 2016