Set-SPProjectUserSyncFullSyncThreshold

定義臨界值,超過此臨界值時,就會將差異使用者同步處理工作當做完整使用者同步處理來執行。此臨界值是專案數目乘以使用者數目的積。

Syntax

Set-SPProjectUserSyncFullSyncThreshold
   [-Url] <Uri>
   [-Threshold] <Int32>
   [-AssignmentCollection <SPAssignmentCollection>]
   [<CommonParameters>]

Description

Set-SPProjectUserSyncFullSyncThreshold Cmdlet 會定義差異使用者同步作業執行為完整使用者同步處理的臨界值。此臨界值是專案數乘以使用者數目的乘積。 此臨界值的目的是在變更量夠大時,使用完整同步處理方法,而不是差異同步處理方法。 將它設定為負值,以重設為未設定) 的預設 (。

此 Cmdlet 只能在 Project Server 權限模式中執行。

如需有關適用於 Project Server 的 Windows PowerShell 權限和最新資訊,請參閱位於 https://go.microsoft.com/fwlink/p/?LinkId=251833 的線上文件 (https://go.microsoft.com/fwlink/p/?LinkId=251833)。

範例

--------------------範例---------------------

Set-SPProjectUserSyncFullSyncThreshold -URL https://contoso-AppSrv/ -Threshold 800

本範例會將Project Web App實例 https://contoso-AppSrv/PWA 的完整使用者同步處理閾值設定為 800。

參數

-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 Subscription Edition

-Threshold

整個數是由專案數目乘以使用者數目而得。

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

-Url

您要設定閾值之Project Web App實例的 URL。

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