Set-SPWorkManagementServiceApplication

設定 Work Management Service 應用程式的設定。

Syntax

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>]

Description

使用 Cmdlet Set-SPWorkManagementServiceApplication 來設定 (,也就是重新整理工作與每部電腦負載之間的最短時間,以便使用 Identity 參數與指定之工作管理服務應用程式的 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

-AssignmentCollection

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

-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、有效的訂閱設定服務應用程式名稱 (例如 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

指定呼叫 Search Service 應用程式以探索使用者有工作的新 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

-名稱

指定 Work Management Service 應用程式的名稱。

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