Get-SPWebApplicationAppDomain

傳回特定 Web 應用程式的所有應用程式網域。

Syntax

Get-SPWebApplicationAppDomain
   [[-Identity] <SPAppDomainPipeBind>]
   -AppDomain <String>
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Zone <SPUrlZone>]
   [<CommonParameters>]
Get-SPWebApplicationAppDomain
   [[-Identity] <SPAppDomainPipeBind>]
   -WebApplication <SPWebApplicationPipeBind>
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Zone <SPUrlZone>]
   [<CommonParameters>]

Description

This cmdlet contains more than one parameter set. You may only use parameters from one parameter set, and you may not combine parameters from different parameter sets. For more information about how to use parameter sets, see Cmdlet parameter sets.

使用 Get-SPWebApplicationAppDoman Cmdlet 可傳回特定 Web 應用程式或所有 Web 應用程式的所有應用程式網域。 如果您未指定參數,則會使用預設區域。

範例

-----------EXAMPLE 1---------

Get-SPWebApplicationAppDomain

傳回 SPAppDomain 物件的清單,伺服器陣列中所有 Web 應用程式的每個應用程式網域各一個。

-----------EXAMPLE 2---------

Get-SPWebApplicationAppDomain -Zone Default

傳回 SPAppDomain 物件的清單,伺服器陣列中所有 Web 應用程式的預設區域每個應用程式域各一個。

-----------EXAMPLE 3---------

Get-SPWebApplicationAppDomain -WebApplication https://www.contoso.com

會傳回 SPAppDomain 物件的清單,針對所有區域的指定 Web 應用程式,每個應用程式域各傳回一個。

-----------EXAMPLE 4---------

Get-SPWebApplicationAppDomain -AppDomain contosoapps.com

傳回 SPAppDomain 物件的清單,每個共用指定應用程式網域的 Web 應用程式和區域配對各一個。

參數

-AppDomain

指定應用程式網域的 URI。

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

-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

-Identity

指定功能變數名稱 (的字串,也就是 contoso.com) 或 SPAppDomain 物件。

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

-WebApplication

對於設定應用程式網域的 Web 應用程式指定 GUID、URI 或名稱。

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

-Zone

指定將指派應用程式網域的安全性區域。

  • 預設

  • 內部網路

  • 網際網路

  • 外部網路

  • 自訂

若未指定任何值,將套用預設值。

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

輸入

Microsoft.SharePoint.Administration.SPAppCmdlets.SPAppDomainPipeBind

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

輸出

系統.物件