IMCEAEX to X500 Converter

IssueUsers receive an IMCEAEX NDR when emailing another internal user. Cause This can be caused by a bad LegacyExcangeDN. A change in the LegacyExchangeDN for that user is usually the culprit or a user and/or contact was deleted. This script makes the conversion simple.

 
 
 
 
 
5 Star
(2)
2,412 times
Add to favorites
Exchange
6/13/2019
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Need one more replace: .replace("+2C", ",")
    2 Posts | Last post June 13, 2019
    • Add another replace to this line to replace +2C with a comma.
      
      $Clean = $IMCEAEX.replace("+20", " ").replace("+28", "(").Replace("+29", ")").replace("IMCEAEX-", "X500:").replace("_", "/").replace("+2E", ".").replace("+2C", ",").split("@")[0]
      
      
      IMCEAEX-_O=SOME+20RANDOM+20COMPANY_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+28FYDIBOHF23SPDLT+29_CN=RECIPIENTS_CN=Doe+2C+20Johnc50@somecompany.com
      
      should return:
      The converted X500 is: X500:/O=SOME RANDOM COMPANY/OU=EXCHANGE ADMINISTRATIVE GROUP (FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=Doe, Johnc50
      
      but the original code returns with CN=Doe+2C Johnc50
      
    • Brian,
      
      Thank you for calling that out, I have updated the script. I appreciate your contribution.
      
      
      Respectfully,
      
      JP