Applies to: Exchange Server 2007
Topic Last Modified: 2007-06-05
Use the Remove-MailContact cmdlet to delete an existing mail-enabled contact from the Active Directory directory service.
Syntax
Remove-MailContact -Identity
<MailContactIdParameter> [-DomainController
<Fqdn>]
|
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
Identity |
Required |
Microsoft.Exchange.Configuration.Tasks.MailContactIdParameter |
This parameter specifies the identity of the mail contact. |
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
To specify the fully qualified domain name of the domain controller that writes this configuration change to Active Directory, include the DomainController parameter. on the command. |
Detailed Description
The Remove-MailContact cmdlet removes an existing mail-enabled contact object from the Active Directory directory service.
To run Remove-MailContact cmdlet, the account you use must be delegated the following:
- Exchange Recipient Administrator role
- Account Operator role for the applicable Active Directory
containers
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
In this example, the Remove-MailContact command is used to remove the mail-enabled contact John Peoples from Active Directory.
Copy Code | |
---|---|
Remove-MailContact -Identity contoso.com/john |