Applies to: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1
Topic Last Modified: 2007-07-31

The Set-AutoDiscoverVirtualDirectory cmdlet configures settings on the Autodiscover virtual directory on a computer that is running Microsoft Exchange Server 2007 that has the Client Access server role installed. You can run this cmdlet on the local Client Access server or from another Exchange 2007 server.

Syntax

Set-AutodiscoverVirtualDirectory -Identity <VirtualDirectoryIdParameter> [-BasicAuthentication <$true | $false>] [-Confirm [<SwitchParameter>]] [-DigestAuthentication <$true | $false>] [-DomainController <Fqdn>] [-ExternalUrl <Uri>] [-InternalUrl <Uri>] [-WhatIf [<SwitchParameter>]] [-WindowsAuthentication <$true | $false>]
Set-AutodiscoverVirtualDirectory [-BasicAuthentication <$true | $false>] [-Confirm [<SwitchParameter>]] [-DigestAuthentication <$true | $false>] [-DomainController <Fqdn>] [-ExternalUrl <Uri>] [-Instance <ADAutodiscoverVirtualDirectory>] [-InternalUrl <Uri>] [-WhatIf [<SwitchParameter>]] [-WindowsAuthentication <$true | $false>]

Parameters

Parameter Required Type Description

Identity

Required

Microsoft.Exchange.Configuration.Tasks.VirtualDirectoryIdParameter

This parameter specifies the name of the virtual directory and the Web site. This parameter can also be used to specify the Client Access server if it is being run from another Exchange 2007 server.

BasicAuthentication

Optional

System.Boolean

This parameter is used to configure Basic authentication on the Autodiscover virtual directory.

Confirm

Optional

System.Management.Automation.SwitchParameter

The Confirm parameter causes the command to pause processing and requires that you acknowledge what the command will do before processing continues. You do not have to specify a value with the Confirm parameter.

DigestAuthentication

Optional

System.Boolean

This parameter is used to configure Digest authentication on the Autodiscover 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 URL that is used to connect to the virtual directory from outside the network firewall.

Instance

Optional

Microsoft.Exchange.Data.Directory.SystemConfiguration.ADAutodiscoverVirtualDirectory

This parameter specifies the object input parameter. It is required if the Identity parameter is not used

InternalUrl

Optional

System.Uri

This parameter specifies the URL that is used to connect to the virtual directory from inside the network firewall.

WindowsAuthentication

Optional

System.Boolean

This parameter is used to configure Integrated Windows authentication on the Autodiscover virtual directory.

WhatIf

Optional

System.Management.Automation.SwitchParameter

The WhatIf parameter instructs the command to simulate the actions that it would take on the object. By using the WhatIf parameter, you can view the changes that would occur without having to apply any of those changes. You do not have to specify a value with the WhatIf parameter.

Detailed Description

The Set-AutoDiscoverVirtualDirectory cmdlet configures settings on the Autodiscover virtual directory on an Exchange 2007 Client Access server. You can run this cmdlet on the local Client Access server or from another Exchange 2007 server.

To run the Set-AutoDiscoverVirtualDirectory cmdlet, the account you use must be delegated the Exchange Server Administrator role and membership in the local Administrators group for the target server.

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

Input Types

Return Types

Errors

Error Description

 

 

Exceptions

Exceptions Description

 

 

Example

The following code example sets the authentication method to Digest authentication for the Autodiscover virtual directory.

Copy Code
Set-AutoDiscoverVirtualDirectory -Identity autodiscover(default web site) -WindowsAuthentication $false -BasicAuthentication $false -DigestAuthentication $true