Repair-SPProjectWebInstance

重新排入可能已退出队列的特定 Project Server 队列项。

语法

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

说明

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 参数,则会自动处理这些对象。

使用全局参数时,所有对象均包含在全局存储中。 如果未立即使用对象,或未通过使用 Stop-SPAssignment 命令来处理对象,则可能会发生内存不足的情况。

Type:SPAssignmentCollection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Identity

Project Web App 实例的标识。

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

-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:SharePoint Server Subscription Edition