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 |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016 |
-AssignmentCollection
管理物件以適當處置它們。 使用 SPWeb 或 SPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。 您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。 使用 SPWeb、SPSite 或 SPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。
使用 Global 參數時,所有物件會包含在全域儲存區內。
如果不立即使用物件,或使用 Stop-SPAssignment
命令加以捨棄,則可能會有記憶體不足的狀況發生。
Type: | SPAssignmentCollection |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | False |
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 |
Required: | True |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016 |
-MinimumTimeBetweenProviderRefreshes
指定每位使用者快取更新作業之間的最短時間長度。 如果在使用者上次成功重新整理要求之後未通過此時間,服務應用程式就不會執行新的重新整理要求。
Type: | TimeSpan |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016 |
-Name
指定 Work Management Service 應用程式的名稱。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | False |
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 |
Required: | False |
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 |
Required: | False |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016 |