Get-SPProjectWebInstance

返回 Project Web App 网站的实例。

语法

Get-SPProjectWebInstance
   [-ServiceApplication <PsiServiceApplicationPipeBind>]
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Url <Uri>]
   [<CommonParameters>]

说明

Get-SPProjectWebInstance cmdlet 返回Project Web App站点的实例,包括以下信息:

  • ID (GUID)
  • 服务应用程序名称
  • 父 Web 应用
  • Project Web App URL
  • LCID) (区域设置标识符
  • 管理员帐户
  • Project Web App数据库服务器
  • Project Web App数据库的数据库名称
  • 预配状态
  • 报表中心状态
  • 网站 ID (GUID)

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

示例

----------------------EXAMPLE-----------------------

Get-SPProjectWebInstance -Url https://server/pwa

本示例返回Project Web App实例的https://server/pwa属性。

参数

-ServiceApplication

指定 Project Server 服务应用程序的名称。

该类型必须是有效的 GUID,格式为 12345678-90ab-cdef-1234-567890bcdefgh;Project Web App实例的有效名称 (例如 ProjectWebApp1) ;或有效的 PsiServiceApplication 对象的实例。

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

-Url

指定要获取的Project Web App实例的 URL。

该类型必须是有效的 URL,格式为 https://<server_name>/<PWA_name>。

Type:Uri
Position:Named
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