Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm extremely new to Exhange and have a programming task to create distribution groups.

The method I am using is

public GroupPrincipal CreateDistributionGroup(string groupName, string displayName, string description, GroupScope groupScope, 
            string emailAddress, string exchangeDN)
            GroupPrincipal distGrp = this.CreateGroup(groupName, description, groupScope, false);

            this.SetGroupAttribute(distGrp, GroupAttribute.MailNickName, groupName);
            this.SetGroupAttribute(distGrp, GroupAttribute.DisplayName, displayName);
            this.SetGroupAttribute(distGrp, GroupAttribute.ReportToOriginator, true);
            this.SetGroupAttribute(distGrp, GroupAttribute.Mail, emailAddress);
            this.SetGroupArrayAttribute(distGrp, GroupAttribute.ProxyAddresses, "SMTP:" + emailAddress);
            this.SetGroupAttribute(distGrp, GroupAttribute.LegacyExchangeDN, exchangeDN);
            this.SetGroupAttribute(distGrp, GroupAttribute.MsExchRecipientDisplayType, 1);

            return distGrp;

Notice that one attribute that gets set is the LegacyExchangeDN. Can I safely ignore this in Exchange 2007, or is it still required?

share|improve this question
up vote 1 down vote accepted

LegacyExchangeDN is used by Outlook2000 clients (IIRC) and for other Outlook clients that cached a group before Exch 2007 was in place. Which is to say, if you don't have 11 year old Outlook running around, you shouldn't need to set that for new groups.

share|improve this answer
Thank you for the explanation. I ignored that property and the group creation went through just fine. – JL. Apr 4 '11 at 20:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.