locked
where can i find my Storage Group and Administrative Group RRS feed

  • Question

  • User479513661 posted

     i want to create a mailbox from  a AD user,and i find an example in

    http://www.kbalertz.com/Feedback_313114.aspx

     

    string homeMDB = "CN=Mailbox Store (Your Server),CN=Your Storage Group," 
        + "CN=InformationStore,CN=Your Server,CN=Servers,"
       + "CN=Your Administrative Group,CN=Administrative Groups,"
       + "CN=Your Org,CN=Microsoft Exchange,CN=Services,"
       + "CN=Configuration,DC=Yourdomain,DC=Com";

     

       //Obtain the IMailboxStore interface, create the mailbox, and commit the changes.
       mailbox = (IMailboxStore)user.NativeObject;
       mailbox.CreateMailbox(homeMDB);
       user.CommitChanges();

     

    But i don't know  what is my "Strage Group" and  "Administrative  Group". I can't find it in my AD . And i want to know how replace the "homeMDB " 'option to my applicaiton

    helps

    i would be appreciated from any suggestion

    Sunday, May 14, 2006 8:30 AM

All replies

  • User479513661 posted

    glad to slove my own issue:)

    i  fetch the the string "homeMDB"  value using  DirectoryEntry.Properties["adminDescription"].Value .

    for example:

    string path="LDAP://ou=someou;dc=somedomain;dc=local";//top orgainization unit dn

    DirectoryEntry dr=new DirectoryEntry(path)

    string homeMDB =dr.Properties["adminDescription"].Value ;

    it return a string in xml format.

     then you can get the value in "MailboxStoreAdsPath" section.

     

    Monday, May 22, 2006 3:45 AM