Disable-DistributionGroup (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 Disable-DistributionGroup command to remove mail capabilities from a mail-enabled group.

Syntax

disable-DistributionGroup -Identity <DistributionGroupIdParameter> [-DomainController <Fqdn>]

Detailed Description

The Disable-DistributionGroup command removes mail attributes from a group. It does not delete the group.

To run the Disable-DistributionGroup 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 Microsoft Exchange Server 2007, see Permission Considerations.

Parameters

Parameter Required Type Description

Identity

Required

Microsoft.Exchange.Configuration.Tasks.DistributionGroupIdParameter

The Identity parameter specifies the identity of the distribution group in one of the following forms:

  • GUID

  • DN

  • LegacyExchangeDN

  • Domain\Account Name

  • Alias

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

To specify the fully qualified domain name (FQDN) of the domain controller that retrieves data from the Active Directory directory service, include the DomainController parameter in the command.

Input Types

Return Types

Errors

Error Description

 

 

Exceptions

Exceptions Description

 

  

Example

In this example, the Disable-DistributionGroup command disables Distribution Group1.

Disable-DistributionGroup -Identity "Distribution Group1"