Get-EcpVirtualDirectory

此 cmdlet 仅适用于本地 Exchange。

使用 Get-EcpVirtualDirectory cmdlet 可查看 Exchange 控制面板 (ECP) 用于 Internet Information Services (iis) Microsoft Exchange 服务器上的虚拟目录。 Exchange 管理中心 (EAC) 使用 ECP 虚拟目录。

ECP Web 管理界面是在 2010 Exchange Server 引入的。 在 Exchange Server 2013 和 Exchange Server 2016 中,EAC 虚拟目录和相应的管理 cmdlet 仍使用名称中的 ECP。 可以使用这些 cmdlet 来管理 Exchange 2010、Exchange 2013 和 Exchange 2016 服务器上的 ECP 虚拟目录。

有关以下语法部分的参数设置的详细信息,请参阅 Exchange cmdlet 语法

语法

Server

Get-EcpVirtualDirectory
    -Server <ServerIdParameter>
    [-ADPropertiesOnly]
    [-DomainController <Fqdn>]
    [-ShowMailboxVirtualDirectories]
    [<CommonParameters>]

Identity

Get-EcpVirtualDirectory
    [[-Identity] <VirtualDirectoryIdParameter>]
    [-ADPropertiesOnly]
    [-DomainController <Fqdn>]
    [-ShowMailboxVirtualDirectories]
    [<CommonParameters>]

说明

您必须先获得权限,然后才能运行此 cmdlet。 尽管本文列出了 cmdlet 的所有参数,但如果某些参数未包含在分配给你的权限中,则可能无法访问这些参数。 若要查找在贵组织中运行任何 cmdlet 或参数所需的权限,请参阅 Find the permissions required to run any Exchange cmdlet

示例

示例 1

Get-EcpVirtualDirectory -Server Server01

此示例返回名为 Server01 的服务器上所有 Exchange 控制面板虚拟目录的摘要列表。

示例 2

Get-EcpVirtualDirectory -Identity "Server01\ecp*" | Format-List

此示例返回 Server01 服务器上名为“ecp (默认网站) ”的 Exchange 控制面板虚拟目录的详细信息。

示例 3

Get-EcpVirtualDirectory

此示例返回组织中所有邮箱服务器上的客户端访问服务中所有 Exchange 控制面板虚拟目录的摘要列表。

参数

-ADPropertiesOnly

适用:Exchange Server 2010、Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Server SE

ADPropertiesOnly 开关指定是否仅返回存储在 Active Directory 中的虚拟目录属性。 不必为此开关指定值。

如果不使用此开关,则会返回 Active Directory 和 Internet Information Services (IIS) 元数据库的属性。

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-DomainController

适用:Exchange Server 2010、Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Server SE

DomainController 参数指定此 cmdlet 从 Active Directory 读取数据或向其写入数据时使用的域控制器。 可以使用完全限定的域名 (FQDN) 来标识域控制器。 例如,dc01.contoso.com。

参数属性

类型:Fqdn
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Identity

适用:Exchange Server 2010、Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Server SE

Identity 参数指定要查看的 ECP 虚拟目录。 可以使用唯一标识虚拟目录的任何值。 例如:

  • 名称或服务器\名称
  • 可分辨名称 (DN)
  • GUID

Name 值使用虚拟目录属性中的语法 "VirtualDirectoryName (WebsiteName)" 。 可以使用 语法 VirtualDirectoryName*指定通配符 (*) 而不是默认网站。

不能在同一个命令中同时使用 Identity 和 Server 参数。

参数属性

类型:VirtualDirectoryIdParameter
默认值:None
支持通配符:False
不显示:False

参数集

Identity
Position:1
必需:False
来自管道的值:True
来自管道的值(按属性名称):True
来自剩余参数的值:False

-Server

适用:Exchange Server 2010、Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Server SE

Server 参数指定托管虚拟目录的 Exchange 服务器。 可以使用唯一标识该服务器的任何值。 例如:

  • 名称
  • FQDN
  • 可分辨名称 (DN)
  • ExchangeLegacyDN

不能在同一个命令中同时使用 Server 和 Identity 参数。

参数属性

类型:ServerIdParameter
默认值:None
支持通配符:False
不显示:False

参数集

Server
Position:Named
必需:True
来自管道的值:True
来自管道的值(按属性名称):True
来自剩余参数的值:False

-ShowMailboxVirtualDirectories

适用:Exchange Server 2013、Exchange Server 2016、Exchange Server 2019、Exchange Server SE

ShowMailboxVirtualDirectories 开关显示有关邮箱服务器上的后端虚拟目录的信息。 不必为此开关指定值。

默认情况下,此 cmdlet 显示有关邮箱服务器上的客户端访问服务中的虚拟目录的信息。 客户端连接从邮箱服务器上的客户端访问服务代理到邮箱服务器上的后端服务。 客户端不直接连接到后端服务。

默认情况下,此 cmdlet 显示邮箱服务器上客户端访问服务中的虚拟目录的相关信息。客户端通过代理从邮箱服务器上的客户端访问服务连接到邮箱服务器上的后端服务。客户端不直接连接到后端服务。

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输入

Input types

若要了解此 cmdlet 接受的输入类型,请参阅 cmdlet 的输入和输出类型。 如果 cmdlet 的"输入类型"字段为空,则表明此 cmdlet 不接受输入数据。

输出

Output types

若要了解此 cmdlet 接受的返回类型(亦称为"输出类型"),请参阅 cmdlet 的输入和输出类型。 如果"输出类型"字段为空,则表明此 cmdlet 不返回任何数据。