I am looking for a way to add a large list of people to my companies global address book. I'd like to use perl if possible. We run Exchange 2000 on Windows 2000 Pro , and I haven't been able to find any documentation on how to do that in any language, without logging onto the mail server and manually entering each one into the the "Active directory Users and Computers" tool.

I looked at modules like Win32::NetAdmin, Win32::OLE, IDG::Win32::ActiveDirectory. But I can only find methods to add actual domain users, not simple email contacts. I also looked at Net::LDAP to import via Active Directory's LDAP interface, but recreating an LDAP schema for contacts seems like overkill for this task. Has anybody here come up with a way to automate this?


In reply to Adding a list of contacts to Exchange Address book. by thunders

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.