Remove-AutodiscoverVirtualDirectory (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
Use the Remove-AutodiscoverVirtualDirectory cmdlet to remove the Autodiscover virtual directory that is associated with the Autodiscover service on a computer that is running Microsoft Exchange Server 2007 that has the Client Access server role installed.
Syntax
Remove-AutodiscoverVirtualDirectory -Identity <VirtualDirectoryIdParameter> [-DomainController <Fqdn>]
Detailed Description
Use the Remove-AutodiscoverVirtualDirectory cmdlet to remove the Autodiscover virtual directory that is associated with the Autodiscover service on an Exchange 2007 Client Access server.
To run the Remove-AutodiscoverVirtualDirectory 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 |
---|---|---|---|
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
To specify the fully qualified domain name (FQDN) of the domain controller that retrieves data from the Active Directory directory service, include the DomainController parameter in the cmdlet. |
Identity |
Required |
Microsoft.Exchange.Configuration.Tasks.VirtualDirectoryIdParameter |
This parameter specifies the name or GUID of an Autodiscover virtual directory. The Identity parameter is represented as: Server name\VirtualDirectory name (Web site Name). |
Input Types
Return Types
Errors
Error | Description |
---|---|
|
|
Exceptions
Exceptions | Description |
---|---|
|
|
Example
The following code example removes the Autodiscover virtual directory from the site autodiscover.contoso.com on the Client Access server named CAS01.
Remove-AutoDiscoverVirtualDirectory -Identity "CAS01\autodiscover(autodiscover.contoso.com)"