Get-AvailabilityGroupStatus

傳回一或多個物件,以代表 SharePoint 伺服器陣列已知的可用性群組。

Syntax

Get-AvailabilityGroupStatus
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Identity <String>]
   [<CommonParameters>]

Description

傳回一或多個物件,以代表 SharePoint 伺服器陣列已知的可用性群組。

範例

範例 1

Get-AvailabilityGroupStatus -Identity MyAvailabilityGroup

此範例會傳回名為 「MyAvailabilityGroup」 的可用性群組。

參數

-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.

注意:使用 Global 參數時,所有物件會包含在全域儲存區內。 若未立即使用物件,或未使用 Stop-SPAssignment 命令處置物件,將會發生記憶體不足的案例。

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

-Identity

尋找名稱屬性符合此字串的可用性群組。 否則,會傳回所有可用性群組。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2010, SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

輸入

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

輸出

系統.物件