Remove-AcceptedDomain (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-AcceptedDomain cmdlet to remove an accepted domain. When you remove an accepted domain, the accepted domain object is deleted. For more information about how to configure an accepted domain, see Set-AcceptedDomain (RTM).
Syntax
Remove-AcceptedDomain -Identity <AcceptedDomainIdParameter> [-DomainController <Fqdn>]
Detailed Description
To run the Remove-AcceptedDomain cmdlet, the account you use must be delegated the following:
- Exchange Organization 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.AcceptedDomainIdParameter |
Use this parameter to specify a string value for the accepted domain. Enter either the GUID or the Name of the remote domain. |
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
To specify the fully qualified domain name (FQDN) of the domain controller that writes this configuration information from the Active Directory directory service, include the DomainController parameter on the command. The DomainController parameter is not supported on computers that have the Edge Transport server role installed. The Edge Transport server role writes and reads only to the local Active Directory Application Mode (ADAM) instance. |
Example
The following code example removes the accepted domain object for an accepted domain that is named Contoso.
Remove-AcceptedDomain -Identity Contoso