Applies to: Exchange Server 2007 SP3, Exchange Server
2007 SP2, Exchange Server 2007 SP1
Topic Last Modified: 2007-08-22
The Remove-ActiveSyncVirtualDirectory cmdlet enables you to delete an existing Microsoft Exchange ActiveSync virtual directory.
Syntax
Remove-ActiveSyncVirtualDirectory -Identity
<VirtualDirectoryIdParameter> [-Confirm
[<SwitchParameter>]] [-DomainController <Fqdn>]
[-WhatIf [<SwitchParameter>]]
|
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. |
Confirm |
Optional |
System.Management.Automation.SwitchParameter |
This 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. |
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. |
WhatIf |
Optional |
System.Management.Automation.SwitchParameter |
This parameter instructs the command to simulate the actions that it would take on the object. By using this parameter, you can view what changes would occur without having to apply any of those changes. You do not have to specify a value with this parameter. |
Detailed Description
When the Exchange ActiveSync virtual directory is removed from a specified server and Web site, the virtual directory is also removed from the Active Directory directory service.
To run the Remove-ActiveSyncVirtualDirectory cmdlet, the account you use must be delegated the Exchange Recipient Administrator role.
For more information about permissions, delegating roles, and the rights that are required to administer Microsoft Exchange Server 2007, see Permission Considerations.
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.
Copy Code | |
---|---|
Remove-ActiveSyncVirtualDirectory contoso\Microsoft-Server-ActiveSync |