Repair-SPProjectWebInstance

將可能已退出佇列的特定 Project Server 佇列專案重新排入佇列。

Syntax

Repair-SPProjectWebInstance
      [-Identity] <ProjectInstancePipeBind>
      -RepairRule <ProjectSiteHealthRuleName>
      [-AssignmentCollection <SPAssignmentCollection>]
      [<CommonParameters>]

Description

Cmdlet Repair-SPProjectWebInstance 會重新排入可能已退出佇列的特定 Project Server 佇列專案。 這包括可能已遺漏的觸發程式,以及在伺服器上排入佇列的佇列作業,該伺服器隨後已從伺服器陣列中移除。

如需 Project Server Windows PowerShell的許可權和最新資訊,請參閱 () https://go.microsoft.com/fwlink/p/?LinkId=251833 線上檔 https://go.microsoft.com/fwlink/p/?LinkId=251833

範例

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

Repair-SPProjectWebInstance -Identity https://contoso-appsrv/PWA -RepairRule QueueMissingTriggers

此範例會將Project Web App實例的任何遺漏觸發程式排入佇列,https://contoso-appsrv/PWA.

參數

-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:Project Server 2013, Project Server 2016, Project Server 2019

-Identity

Project Web App實例的身分識別。

Type:ProjectInstancePipeBind
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False
Applies to:Project Server 2013, Project Server 2016, Project Server 2019

-RepairRule

有效值:QueueMissingTriggers 會在Project Web App搜尋可能已遺漏的任何觸發程式;QueueStaleServerGroups 會將伺服器所挑選的任何作業重新排入佇列,該伺服器隨後已從伺服器陣列中移除。

Type:ProjectSiteHealthRuleName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Project Server 2013, Project Server 2016, Project Server 2019