locked
LegacyExchangeDN RRS feed

  • Question

  • Hello,

    Please find below my configuration:

    Operating System environnement:

    Microsoft Windows Server 2003, Enterprise Edition x64 - R2
    Version 5.2.3790 ServicePack 2 Nu 3790
    Type x64

    ****

    Microsoft Exchange Environnement:
    Exchange Server 2007 Microsoft Corporation
    Version : 08.01.0263.000

     

    We are using Exchange 2007 and Linux system. In fact all mailboxes are Exchange users and mailuser = Linux users

    We lately have "migrate" a user fom Linux system to Exchange (mailuser to mailbox) but it occures that a bad manipulation did not delete the mailuser.

    So created the existing user as a mailbox but the account was still existing in the Linux system.

    When we noticed that we deleted the account but LegacyExchangeDN has somehow changed.

    I noticed that the LegacyExchangeDN was differente between my account and the user with the pb

    DisplayName                          : FIRSTNAME LASTNAME
    LegacyExchangeDN                     : /o=company/ou=Exchange Administrative Group (FPLOKHF234PL0LT)/cn=Recipients/cn=SamAccountNameCHANGED
    PoliciesIncluded                     : {{8AA09460-E546-43DB-A9EF-0068C5FFED6C},{9831CFC-9E67-4857-861B-0CB8FG44B5D8}}
    DistinguishedName                    : CN=LASTNAME FIRSTNAME,OU=T1,OU=Users,OU=Sire,DC=company,DC=intra

    DisplayName                          : FIRSTNAME2 LASTNAME2
    LegacyExchangeDN                     : /o=company/ou=Exchange Administrative Group (FPLOKHF234PL0LT)/cn=Recipients/cn=SamAccountNameOLD
    PoliciesIncluded                     : {{66C1C4F7-65E1-4819-8BD5-CF0CCA53C9AF},{9831CFC-9E67-4857-861B-0CB8FG44B5D8}}
    DistinguishedName                    : CN=FIRSTNAME2 LASTNAME2,OU=C5,OU=Users,OU=Site,DC=company,DC=intra

    To get the LegacyExchangeDN I ran:

    Get-Mailuser SamAccountName | fl LegacyExchangeDN

    I was wondering if I could set the LegacyExchangeDN from a shell command?

    I have created a custum address X500 refering that post: http://www.simple-talk.com/sysadmin/exchange/exchange-e-mail-addresses-and-the-outlook-address-cache/

    I have tried to understand the script in that post http://mostlyexchange.blogspot.com/2007/08/exchange-2007-legacyexchangedn-and-mail.html butI could not find any concrete example and I am not a experte on modify scripts.

    Thanks you in advance for your input.

    Gregory

    Wednesday, April 21, 2010 7:58 AM

Answers

All replies

  • Hi,

    You can modify LEDN using the ADSIEdit.msc. You can do it with shell using ADSI objects, but there is no Exchange powershell command for it.

    Open ADSIEDit, and the locate your user and right click it and see properties and then change the LEDN attribtue there.

    If you only want to modify it for just one or few users then it would be better to use ADSIEdit.msc, which u can download with windows support tools for win 2003 server.

    Regards,


    Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
    • Proposed as answer by Laeeq Qazi Thursday, April 22, 2010 9:13 AM
    Wednesday, April 21, 2010 10:57 AM
  • Thanks Again!! I have created X500 custom email address as I had no solution before you pop up with that one :-)

    Can I leave them or shall I remove all the X500 custom email address I set to user not being reachable by other Exahnge users using the cache mode in outlook?


    Do you have some link about how ASIEdit.msc works?

    Thanks,

    Graig

    • Proposed as answer by Laeeq Qazi Thursday, April 22, 2010 9:13 AM
    Thursday, April 22, 2010 8:27 AM
  • Thanks Again!! I have created X500 custom email address as I had no solution before you pop up with that one :-)

    Can I leave them or shall I remove all the X500 custom email address I set to user not being reachable by other Exahnge users using the cache mode in outlook?


    Do you have some link about how ASIEdit.msc works?

    Thanks,

    Graig

    If you have added LEDN as X500 email addresses then its quite fine. It is also a recommended solution. Now no need to remove them.

    There are many articles for ADSIEdit over internet, which u can google. Its very easy to use, download it and install it and then see it , its very easy to use, same as ADUC console in Active Directroy.

    Some links are:

    http://bitcruncher.blogspot.com/2005/01/adsiedit-utility.html

    http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/introducing-the-adsi-edit-utility.aspx

    Regards,


    Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
    • Marked as answer by Graiggoriz Thursday, April 22, 2010 1:13 PM
    Thursday, April 22, 2010 9:12 AM