Re: Mailbox Creation
- From: "Hal Berenson" <hberenson@xxxxxxxxxxxxxxxxx>
- Date: Sat, 20 Aug 2005 09:27:12 -0600
Thanks! We'll give it a try.
--
Hal Berenson, President
PredictableIT, LLC
"Jeffrey Lathrop" <JeffreyLathrop@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:9B9E6D8E-98D1-4919-B89E-8CF1C1B3D2D2@xxxxxxxxxxxxxxxx
>I have been running this code for 18months and not having a problem with
> proxy addresses being added.
> The script adds them, and true there is a delay in seeing the addresses in
> ADCU, but when
> exchange is done synching all the information, the addresses added via the
> script are there.
>
> --
> Jeffrey Lathrop
>
>
>
> "Hal Berenson" wrote:
>
>> Hmm. We are finding that there is a 30-second delay between the mailbox
>> creation and the ability to add proxyaddresses. You can even see this
>> with
>> the ADCU in that once you add a user and it kicks off mailbox creation
>> you
>> can't add email addresses for that same delay.
>>
>>
>> --
>> Hal Berenson, President
>> PredictableIT, LLC
>>
>>
>> "Jeffrey Lathrop" <JeffreyLathrop@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
>> message news:D782F8F6-59EB-4D62-82DA-519A51DCB1B3@xxxxxxxxxxxxxxxx
>> >I wrote an account automation script at my last job. The user and
>> >mailbox
>> > creation were handled as 2 separate sub routines. Create the user
>> > using
>> > the
>> > ADODB objects,
>> >
>> > Set objOU = GetObject("LDAP://OU=NewUsers,dc=mycompanyr,dc=com,dc=INC")
>> > Set objUser = objOU.Create("User", "cn="&strMultiName)
>> >
>> >
>> > This creates the user and then you can set the UPN to what you want it
>> > to
>> > be.
>> >
>> > Then create the mailbox passing the objUser variable to the
>> > createmailbox
>> > subroutine.
>> >
>> > create and new variable from a CDO.Person object
>> >
>> > set cdPerson = CreateObject("CDO.Person")
>> > set cdPerson = objuser
>> >
>> > -- cdPerson.CreateMailbox
>> > "CN="&cmstore&",CN="&cmstoregrp&",CN=InformationStore,CN="&cmsrv&",CN=Servers,CN="&cmadmingrp&",CN=Administrative
>> > Groups,CN=mycompany,CN=Microsoft
>> > Exchange,CN=Services,CN=Configuration,dc=com,dc=inc"
>> > cdPerson.SetInfo
>> >
>> > Then set the Proxyaddresses for the user. The capitalize SMTP
>> > represents
>> > the primary email address of the mailbox.
>> >
>> > cdPerson.Put "proxyAddresses",
>> > Array("smtp:"&aliasB&"@mycompany.com","SMTP:"&aliasNB&"@mycompany.com")
>> > cdPerson.SetInfo
>> >
>> >
>> > There is no delay in being able to set these values. You should
>> > however
>> > use
>> > a specific dc server for your LDAP query string as some calls can go to
>> > different dcs and would not get replicated in time for the mailbox
>> > creation.
>> > Personal experience.
>> >
>> > Jeffrey Lathrop
>> >
>> >
>> >
>> > "Hal Berenson" wrote:
>> >
>> >> Is there really no one in this newsgroup who can help with this? Is
>> >> there a
>> >> better place to be asking?
>> >>
>> >> --
>> >> Hal Berenson, President
>> >> PredictableIT, LLC
>> >>
>> >>
>> >> "Hal Berenson" <hberenson@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> >> news:OUa3ioboFHA.632@xxxxxxxxxxxxxxxxxxxxxxx
>> >> > We're trying to create an automated provisioning system and have run
>> >> > into
>> >> > a problem with creating mailboxes. Our users login using UPN and
>> >> > their
>> >> > email addresses match their UPNs. All the examples we've seen for
>> >> > creating mailboxes end up using the sAMAccountName as the mailbox
>> >> > name.
>> >> > For our users the sAMAccountName is a random string, so this is
>> >> > useless
>> >> > as
>> >> > an email address. We go in and add the appropriate email address on
>> >> > the
>> >> > mailbox, so for the user it really doesn't matter. But, since it
>> >> > takes
>> >> > 30
>> >> > or more seconds from creating the mailbox (with CDOEXM's
>> >> > IMailBoxStore.CreateMailBox) until we can add the correct email
>> >> > address
>> >> > this is really screwing up our user experience. What we'd like to
>> >> > do
>> >> > is
>> >> > have the initial mailbox creation be based on the UPN rather than
>> >> > sAMAccountName. Is this possible?
>> >> >
>> >> > --
>> >> > Hal Berenson, President
>> >> > PredictableIT, LLC
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>
.
- References:
- Mailbox Creation
- From: Hal Berenson
- Re: Mailbox Creation
- From: Hal Berenson
- Re: Mailbox Creation
- From: Jeffrey Lathrop
- Re: Mailbox Creation
- From: Hal Berenson
- Re: Mailbox Creation
- From: Jeffrey Lathrop
- Mailbox Creation
- Prev by Date: RE: MS Exchange Backup and Restore API problem
- Next by Date: Keeping a message-id during routing for an SMTP sink
- Previous by thread: Re: Mailbox Creation
- Next by thread: Restoring single mailboxes with exchange API.
- Index(es):
Relevant Pages
|