Mailbox Creation
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Mailbox Creation

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Hal Berenson
Guest





Posted: Mon Aug 15, 2005 4:59 pm    Post subject: Mailbox Creation Reply with quote

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

Back to top
Hal Berenson
Guest





Posted: Thu Aug 18, 2005 4:59 pm    Post subject: Re: Mailbox Creation Reply with quote

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@scalabilityexperts.com> wrote in message
news:OUa3ioboFHA.632@tk2msftngp13.phx.gbl...
Quote:
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


Back to top
Jeffrey Lathrop
Guest





Posted: Sat Aug 20, 2005 12:21 am    Post subject: Re: Mailbox Creation Reply with quote

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:

Quote:
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@scalabilityexperts.com> wrote in message
news:OUa3ioboFHA.632@tk2msftngp13.phx.gbl...
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







Back to top
Hal Berenson
Guest





Posted: Sat Aug 20, 2005 12:59 am    Post subject: Re: Mailbox Creation Reply with quote

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@discussions.microsoft.com> wrote in
message news:D782F8F6-59EB-4D62-82DA-519A51DCB1B3@microsoft.com...
Quote:
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@scalabilityexperts.com> wrote in message
news:OUa3ioboFHA.632@tk2msftngp13.phx.gbl...
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





Back to top
Jeffrey Lathrop
Guest





Posted: Sat Aug 20, 2005 12:59 am    Post subject: Re: Mailbox Creation Reply with quote

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:

Quote:
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@discussions.microsoft.com> wrote in
message news:D782F8F6-59EB-4D62-82DA-519A51DCB1B3@microsoft.com...
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@scalabilityexperts.com> wrote in message
news:OUa3ioboFHA.632@tk2msftngp13.phx.gbl...
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








Back to top
Hal Berenson
Guest





Posted: Sat Aug 20, 2005 4:58 pm    Post subject: Re: Mailbox Creation Reply with quote

Thanks! We'll give it a try.

--
Hal Berenson, President
PredictableIT, LLC


"Jeffrey Lathrop" <JeffreyLathrop@discussions.microsoft.com> wrote in
message news:9B9E6D8E-98D1-4919-B89E-8CF1C1B3D2D2@microsoft.com...
Quote:
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@discussions.microsoft.com> wrote in
message news:D782F8F6-59EB-4D62-82DA-519A51DCB1B3@microsoft.com...
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@scalabilityexperts.com> wrote in message
news:OUa3ioboFHA.632@tk2msftngp13.phx.gbl...
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








Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
Contact Us
New Topics Powered by phpBB