Applies to: Exchange Server 2010 SP3, Exchange Server 2010 SP2

Topic Last Modified: 2012-11-16

Use the Get-WebServicesVirtualDirectory cmdlet to retrieve information in Active Directory for the virtual directory EWS from a computer running Microsoft Exchange Server 2010 with the Client Access server role installed.


Get-WebServicesVirtualDirectory [-Identity <VirtualDirectoryIdParameter>] [-ADPropertiesOnly <SwitchParameter>] [-DomainController <Fqdn>]
Get-WebServicesVirtualDirectory -Server <ServerIdParameter> [-ADPropertiesOnly <SwitchParameter>] [-DomainController <Fqdn>]

Detailed Description

The Get-WebServicesVirtualDirectory 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 Microsoft Office Outlook Web App virtual directories on all Internet Information Services (IIS) Web sites located on the Client Access servers in the organization.

The Get-WebServicesVirtualDirectory cmdlet can be run on any server that has the Exchange administration tools installed.

You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Exchange Web Services settings" entry in the Client Access Permissions topic.


Parameter Required Type Description




The Server parameter specifies the name or GUID of the server that hosts the virtual directories that you want to display.




The ADPropertiesOnly switch specifies whether to return only the properties about the virtual directory stored in Active Directory. The properties stored in the Internet Information Services (IIS) metabase aren't returned.




The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that retrieves data from Active Directory.




The Identity parameter specifies either the GUID of the server, the name of the Web site, or the name of the virtual directory that you want to display.

Input Types

To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.

Return Types

To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.



This example returns the settings for the Exchange Web Services virtual directory EWS under the default Web site in IIS.

Copy Code
Get-WebServicesVirtualDirectory -Identity EWS(default Web site)


This example uses the Identity parameter to retrieve all settings for the Exchange Web Services virtual directories on the server CAS01.

Copy Code
Get-WebServicesVirtualDirectory -Identity CAS01