adding a mail contact into AD

Posted by Grant Collins on Stack Overflow See other posts from Stack Overflow or by Grant Collins
Published on 2009-12-22T10:26:22Z Indexed on 2010/05/27 13:41 UTC
Read the original article Hit count: 176

Filed under:
|

Hi,

I am looking for a bit of guidence on how to create mail contacts in AD. This is a follow on question from SO Q#1861336.

What I am trying to do is add a load of contact objects into an OU in Active Directory. I've been using the examples on CodeProject, however they only show how to make new user etc.

How do I create a contact using c#? Is it similar to creating a new user but with different LDAP type attributes?

My plan is to then run the enable-mailcontact cmdlet powershell script to enable Exchange 2010 to see the contact in the GAL.

As you can see by my questions I don't usually deal with c# or Active Directory so any help/pointers would be really useful before I start playing with this loaded gun.

Thanks,

Grant

© Stack Overflow or respective owner

Related posts about c#

Related posts about active-directory