Get-SPWebApplicationAppDomain

为特定 Web 应用程序返回所有应用域。

语法

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

说明

此 cmdlet 包含多个参数集。 您可以只使用来自一个参数集的参数,也可以不合并来自不同参数集的参数。 若要详细了解如何使用参数集,请参阅 Cmdlet 参数集

Use the Get-SPWebApplicationAppDoman cmdlet to return all app domains for a specific web application or for all web applications. If you do not specify parameters, the default zone is used.

示例

-----------示例 1---------

Get-SPWebApplicationAppDomain

返回 SPAppDomain 对象的列表,服务器场中所有 Web 应用程序的每个应用程序域对应一个列表。

-----------示例 2---------

Get-SPWebApplicationAppDomain -Zone Default

返回 SPAppDomain 对象的列表,服务器场中所有 Web 应用程序的默认区域的每个应用程序域对应一个列表。

-----------示例 3---------

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

返回 SPAppDomain 对象的列表,所有区域的指定 Web 应用程序的每个应用程序域对应一个列表。

-----------示例 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

-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

指定要将应用程序域分配到的安全区域。

  • 默认

  • Intranet

  • Internet

  • Extranet

  • 自定义

如果未指定任何值,则应用默认值。

Type:SPUrlZone
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

输入

Microsoft.SharePoint.Administration.SPAppCmdlet.SPAppDomainPipeBind

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

输出

System.Object