Applies to: Exchange Server 2007
Topic Last Modified: 2007-06-11

Use the Get-OwaVirtualDirectory cmdlet to retrieve all Outlook Web Access virtual directories on an Exchange 2007 computer that has the Client Access server role installed.

Syntax

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

Parameters

Parameter Required Type Description

Server

Required

Microsoft.Exchange.Configuration.Tasks.ServerIdParameter

This parameter specifies the name or GUID of the server that hosts the Outlook Web Access virtual directories that you want to display. It is required if you are not running Get-OwaVirtualDirectory on a server that has the Client Access server role installed.

Identity

Optional

Microsoft.Exchange.Configuration.Tasks.VirtualDirectoryIdParameter

This parameter specifies the name or GUID of an Outlook Web Access virtual directory. It is represented as: ServerName\VirtualDirectoryName (WebsiteName).

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

To specify the fully qualified domain name of the domain controller that retrieves data from the Active Directory directory service, include the DomainController parameter in the command.

Detailed Description

The Get-OwaVirtualDirectory cmdlet is used to retrieve and display the configuration settings that are currently set on Outlook Web Access virtual directories on Microsoft Exchange Server 2007. The Get-OwaVirtualDirectory cmdlet can also retrieve and display the configuration settings on a specific Outlook Web Access virtual directory.

The Get-OwaVirtualDirectory cmdlet can be run on a local server, or run remotely if the server name is specified in the Identity or Server parameters. It can also be run without parameters to retrieve the configuration settings from all Outlook Web Access virtual directories on all Internet Information Services (IIS) Web sites that are located on the Client Access servers in the organization.

The Get-OwaVirtualDirectory cmdlet can be run on any server that has the Exchange Server administration tools installed. The account you use must be delegated the following:

  • Exchange View-Only Administrator role

For more information about permissions, delegating roles, and the rights that are required to administer Exchange Server 2007, see Permission Considerations.

Input Types

Return Types

Errors

Error Description

 

 

Exceptions

Exceptions Description

 

 

Example

The first code example shows how to use the Server parameter to retrieve all Outlook Web Access virtual directories on a server named "Contoso."

The second code example shows how to use the Identity parameter to retrieve the configuration settings on an Outlook Web Access virtual directory named "owa (default web site)" on the server named "Contoso."

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