Great. Please set your sensitivity to normal. Cripes.

-----Original Message-----
From: Robert WALKER [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 22, 2002 6:56 PM
To: Exchange Discussions
Subject: Found out how to create an exchange mailbox!
Sensitivity: Confidential


Hi,

        I eventually worked out what I was doing wrong and have got it
        to work. That is creating a mailbox for exchange. Fairly Simple
        really.

        dim obj as iadscontainer
        dim mobj as cdoexm.imailboxstore

        set obj = getobject("LDAP://"; & Server & "/cn=" & UserName & _
                        "cn=users" & Domain ' as dc=x,dc=y,dc=z
        ' Your site as in x.y.z eg host.microsoft.com

        set mobj = obj ' overlay mailbox to user container.

        mobj.createmailbox "LDAP://cn=mailbox store (" & exServer & ")" & _
                "cn=first storage group,cn=information store," & _
                "cn=" & exserver & ",cn=servers," & _
                "cn=first administration group,cn=administrative group," & _
                "cn=" & ExchangeOrganization & ",cn=microsoft exchange," & _
                "cn=services,cn=configuration," & Domain

        ' Exchange Organization appears in Exchange system managers
        ' Exchange Server is the targeted exchange box to create mailbox

        obj.setinfo ' write cached data back to active directory.

        set obj = nothing
        set mobj = nothing


        There you have it! Quite simple really.

Robert.



_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]

------------------------------------------------------------------------------
The information contained in this email message is privileged and confidential 
information intended only for the use of the individual or entity to whom it is 
addressed.  If the reader of this message is not the intended recipient, you are 
hereby notified that any dissemination, distribution or copy of this message is 
strictly prohibited.  If you have received this email in error, please immediately 
notify Veronis Suhler Stevenson by telephone (212)935-4990, fax (212)381-8168, or 
email ([EMAIL PROTECTED]) and delete the message.  Thank you.

==============================================================================


_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]

Reply via email to