New-WebServicesVirtualDirectory (RTM)

Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.

 

Applies to: Exchange Server 2007

The New-WebServicesVirtualDirectory cmdlet lets you create a new virtual directory on the computer that is running Microsoft Exchange Server 2007 that has the Client Access server role installed.

Syntax

New-WebServicesVirtualDirectory [-ApplicationRoot <String>] [-AppPoolId <String>] [-BasicAuthentication <$true | $false>] [-DigestAuthentication <$true | $false>] [-DomainController <Fqdn>] [-ExternalUrl <Uri>] [-InternalUrl <Uri>] [-Path <String>] [-TemplateInstance <PSObject>] [-WebSiteName <String>] [-WindowsAuthentication <$true | $false>]

Detailed Description

The New-WebServicesVirtualDirectory cmdlet lets you create a new virtual directory on the Exchange 2007 Client Access server. You can create multiple virtual directories by using this cmdlet.

To run the New-WebServicesVirtualDirectory cmdlet, the account you use must be delegated the following:

  • Exchange Server Administrator role and local Administrators group for the target server

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

Parameters

Parameter Required Type Description

DigestAuthentication

Optional

System.Boolean

This parameter, when it is used, specifies the use of Digest Authentication the virtual directory.

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

To specify the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to the Active Directory directory service, include the DomainController parameter on the cmdlet.

ExternalUrl

Optional

System.Uri

This parameter specifies the host name that will be used to connect to the Exchange server from outside the perimeter network.

Path

Optional

System.String

This parameter sets the path of the virtual directory in the metabase. 

TemplateInstance

Optional

System.Management.Automation.PSObject

When an existing object is supplied to this parameter, the command will use the configuration of that object to create a copy of the object on a local or target server.

WebSiteName

Optional

System.String

This parameter specifies the name of the Web site under which to create the new virtual directory. This parameter should not be used when you are creating a new virtual directory under the default Web site.

WindowsAuthentication

Optional

System.Boolean

Use this parameter to specify whether Windows Integrated authentication is permitted on the new Exchange Web Services virtual directory. 

Input Types

Return Types

Errors

Error Description

 

 

Exceptions

Exceptions Description

 

 

Example

This code example creates a new virtual directory named "contoso" with the external URL set to "https://www.contoso.com/webservices.aspx".

New-WebServicesVirtualDirectory -WebsiteName "www.contoso.com" -ExternalUrl "https://www.contoso.com/webservices.aspx"