Set-SPProjectUserSyncDisabledSyncThreshold

Defines the threshold over which a user sync job will not be executed but instead will be deleted. This threshold is the product of the number of projects multiplied by the number of users.

语法

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

说明

cmdlet Set-SPProjectUserSyncDisabledSyncThreshold d 的阈值,用户同步作业将不会执行,而是将被删除。 该阈值是用户数与项目数的乘积。 配置该阈值的目的是防止对整个服务器进行恶意用户同步。 将该阈值设置为负值可重置为默认值(未设置)。

此 cmdlet 仅在 Project Server 权限模式下起作用。

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

示例

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

Set-SPProjectUserSyncDisabledSyncThreshold -URL http//contoso-AppSrv/PWA -Threshold 400

本示例将 http//contoso-AppSrv/PWA 的Project Web App实例的同步禁用阈值设置为 400。

参数

-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

-工作分配

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