Get-SPProjectWebInstance

傳回 Project Web App 網站的執行個體。

Syntax

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

Description

Get-SPProjectWebInstance Cmdlet 會傳回Project Web App網站的實例,包括下列資訊:

  • GUID (識別碼)
  • 服務應用程式名稱
  • 父系 Web 應用程式
  • Project Web App URL
  • LCID (地區設定識別碼)
  • 管理員帳戶
  • Project Web App資料庫伺服器
  • Project Web App資料庫的資料庫名稱
  • 布建狀態
  • 報表中心狀態
  • GUID (網站識別碼)

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

範例

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

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

這個範例會傳回 位於 Project Web App 實例 https://server/pwa 的屬性。

參數

-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

-ServiceApplication

指定 Project Server 服務應用程式的名稱。

此類型必須是格式為 12345678-90ab-cdef-1234-567890bcdefgh 的有效 GUID;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