Applies to: Exchange Server 2007
Topic Last Modified: 2007-06-05

Use the Disable-DistributionGroup command to remove mail capabilities from a mail-enabled group.

Syntax

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

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.

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.

Input Types

Return Types

Errors

Error Description

 

 

Exceptions

Exceptions Description

 

  

Example

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

Copy Code
Disable-DistributionGroup -Identity "Distribution Group1"