This topic has not yet been rated - Rate this topic

Remove-MailUser (RTM)

 

Applies to: Exchange Server 2007

Topic Last Modified: 2007-06-05

Use the Remove-MailUser cmdlet to remove an existing mail-enabled user from the Active Directory directory service.


Remove-MailUser -Identity <MailUserIdParameter> [-DomainController <Fqdn>]

The Remove-MailUser cmdlet removes an existing mail-enabled user object from the Active Directory directory service.

To run the Remove-MailUser 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.

 

Parameter Required Type Description

Identity

Required

Microsoft.Exchange.Configuration.Tasks.MailUserIdParameter

This parameter specifies the identityof the mail user.

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.

 

Error Description

 

 

Exceptions Description

 

In this example, the Remove-MailUser command is used to remove the mail-enabled user Ted Bremer from Active Directory.

Remove-MailUser -Identity "Ted Bremer"
To ensure that you are reading the most up-to-date information and to find additional Exchange Server 2007 documentation, visit the Exchange Server TechCenter. 
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.