Get-OwaVirtualDirectory (RTM)

 

适用于: Exchange Server 2007

上一次修改主题: 2007-06-11

使用 Get-OwaVirtualDirectory cmdlet 可以检索安装了客户端访问服务器角色的 Exchange 2007 计算机上的所有 Outlook Web Access 虚拟目录。

语法

Get-OwaVirtualDirectory [-Identity <VirtualDirectoryIdParameter>] [-DomainController <Fqdn>]

Get-OwaVirtualDirectory -Server <ServerIdParameter> [-DomainController <Fqdn>]

详细说明

Get-OwaVirtualDirectory cmdlet 用于检索和显示 Microsoft Exchange Server 2007 的 Outlook Web Access 虚拟目录上当前设置的配置设置。Get-OwaVirtualDirectory cmdlet 还可以检索和显示特定 Outlook Web Access 虚拟目录的配置设置。

Get-OwaVirtualDirectory cmdlet 可以在本地服务器上运行,如果在 IdentityServer 参数中指定服务器名称,也可以远程运行。还可以无参数运行,以便从位于组织内客户端访问服务器上的所有 Internet Information Services (IIS) 网站中,对所有 Outlook Web Access 虚拟目录检索配置设置。

Get-OwaVirtualDirectory cmdlet 可以在安装了 Exchange Server 管理工具的任何服务器上运行。必须为您使用的帐户委派下列角色:

  • Exchange 仅查看管理员角色

有关管理 Exchange Server 2007 所需的权限、角色委派以及权利的详细信息,请参阅权限注意事项

参数

参数 必需 类型 说明

Server

必需

Microsoft.Exchange.Configuration.Tasks.ServerIdParameter

此参数指定要显示的 Outlook Web Access 虚拟目录所在的服务器名或 GUID。如果不是在安装了客户端访问服务器角色的服务器上运行 Get-OwaVirtualDirectory,则此参数是必需的。

Identity

可选

Microsoft.Exchange.Configuration.Tasks.VirtualDirectoryIdParameter

此参数指定 Outlook Web Access 虚拟目录的名称或 GUID。其表示形式为: ServerName\VirtualDirectoryName (WebsiteName).

DomainController

可选

Microsoft.Exchange.Data.Fqdn

若要指定用于从 Active Directory 目录服务检索数据的域控制器的完全限定的域名,请在命令中包含 DomainController 参数。

输入类型

返回类型

错误

错误 说明

 

 

异常

异常 说明

 

 

示例

第一个代码示例显示如何使用 Server 参数来检索名为“Contoso”服务器上的所有 Outlook Web Access 虚拟目录。

第二个代码示例显示如何使用 Identity 参数在名为“Contoso”服务器中以“owa(默认网站)”命名的 Outlook Web Access 虚拟目录的配置设置。

Get-OwaVirtualDirectory -Server Contoso
Get-OwaVirtualDirectory -Identity "Contoso\owa (default web site)"