Sync-SPProjectPermissions

手動同步處理 Project Web App 執行個體與其相關聯之專案網站間的權限。

Syntax

Sync-SPProjectPermissions
    [-Url] <Uri>
    [-SyncPWASite]
    [-SyncProjectSites]
    [-Async]
    [-AssignmentCollection <SPAssignmentCollection>]
    [<CommonParameters>]
Sync-SPProjectPermissions
    [-Url] <Uri>
    [[-Type] <SharePointPermissionModeSyncType>]
    [-AssignmentCollection <SPAssignmentCollection>]
    [<CommonParameters>]

Description

Cmdlet Sync-SPProjectPermissions 會將許可權同步處理至與Project Web App實例中專案相關聯的專案網站,以及 Project Server 中這些專案上設定的許可權。

此 Cmdlet 同時適用於 SharePoint 權限模式和 Project Server 權限模式。

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

範例

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

Sync-SPProjectPermissions -Url https://pwa_site -Type Full

對 PWA 網站 https://pwa_site 執行完整同步處理。

參數

-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

-Async

指定同步處理放在 Project Server 佇列中。 省略此旗標會導致同步處理立即在Windows PowerShell主控台內發生。

此參數可搭配 Project Server 權限模式使用。

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

-SyncProjectSites

觸發專案月臺的 Project Server 許可權同步處理。

此參數可搭配 Project Server 權限模式使用。

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

-SyncPWASite

觸發將 Project Server 許可權同步處理至 PWA 網站。

此參數可搭配 Project Server 權限模式使用。

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

-Type

指定要執行的同步處理類型:完整或累加。

此參數可搭配 SharePoint 權限模式使用。

有效值為:

Full、Incremental、AllGroups

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

-Url

指定要同步許可權之Project Web App實例的 URL。

此類型必須是格式為 https://pwa_site 的有效 URL。

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