Remove-ActiveSyncVirtualDirectory (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 Remove-ActiveSyncVirtualDirectory cmdlet enables you to delete an existing Microsoft Exchange Server 2007 ActiveSync virtual directory.

Syntax

Remove-ActiveSyncVirtualDirectory -Identity <VirtualDirectoryIdParameter> [-DomainController <Fqdn>]

Detailed Description

When the Exchange ActiveSync virtual directory is removed from a specified server and Web site, the virtual directory is also removed from Active Directory.

To run the Remove-ActiveSyncVirtualDirectory cmdlet, the account you use must be delegated the following:

  • Exchange Recipient Administrator role

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

Identity

Required

Microsoft.Exchange.Configuration.Tasks.VirtualDirectoryIdParameter

This parameter uniquely identifies the Exchange ActiveSync virtual directory that is to be disabled.

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

This parameter specifies the fully qualified domain name (FQDN) of the domain controller that writes configuration changes to the Active Directory directory service.

Input Types

Return Types

Errors

Error Description

Exceptions

Exceptions Description

Example

This code example removes the default Exchange ActiveSync virtual directory from the server that is named Contoso.

Remove-ActiveSyncVirtualDirectory contoso\Microsoft-Server-ActiveSync