RE: Script to create mailbox for Exchange 2003

  • From: "Michael B. Smith" <michael@xxxxxxxxxx>
  • To: "[ExchangeList]" <exchangelist@xxxxxxxxxxxxx>
  • Date: Sat, 9 Jul 2005 00:09:34 -0400

I have no idea. I write in vbscript. You'll have to figure out the rest
yourself.
 
I doubt very highly that you can use it without changes.

________________________________

From: NGUYEN HONG HA [mailto:HANH.EVNIT@xxxxxxxxxx] 
Sent: Tuesday, June 28, 2005 8:28 PM
To: [ExchangeList]
Subject: [exchangelist] RE: Script to create mailbox for Exchange 2003


http://www.MSExchange.org/


Can I ran this in Visual Basic 6.0 ?

 

________________________________

From: Michael B. Smith [mailto:michael@xxxxxxxxxx] 
Sent: Tuesday, June 28, 2005 8:13 AM
To: [ExchangeList]
Subject: [exchangelist] RE: Script to create mailbox for Exchange 2003

 

http://www.MSExchange.org/

You can't do this in one step.

 

E-mail addresses are generated by your Recipient Policy in effect for a
particular user. (By default, you only have a single policy, the Default
Policy.)

 

So, first you have to create the mailbox. See code at
http://blogs.brnets.com/michael/archive/2004/09/30/219.aspx in this
block of code:

 

 ' Create the user's mailbox
 ' Leave this to absolute last, because this is the most
 ' likely failure point - if this script isn't being run
 ' on an Exchange server, the Exchange Management Tools must
 ' be installed.
 Set objExchUser = objUser
 objExchUser.CreateMailBox strMailboxStoreDN
 If ErrorReport ("on CreateMailBox (" & strMailboxStoreDN & ")") Then
  'Call objParent.Delete ("user", "CN=" & strName)
  Set objUser = Nothing
  Exit Sub
 End If

 

and after the RUS runs and stamps all the various users with all there
various attributes, you can go back and edit the proxyAddresses
attribute on each user, and set the msExchPoliciesIncluded so that RUS
will not set the email addresses again.

 

________________________________

From: NGUYEN HONG HA [mailto:HANH.EVNIT@xxxxxxxxxx] 
Sent: Monday, June 27, 2005 9:00 PM
To: [ExchangeList]
Subject: [exchangelist] RE: Script to create mailbox for Exchange 2003

http://www.MSExchange.org/

No, they haven't got the mailbox.

We upgrade Windows Server from 2000 to 2003, so we already have all the
user accounts.

Then we install Exchange Server 2003.

We have a CSV file and now we want to create mailboxes and e-mail
addresses for all the user accounts.

Is there any way to do so ?

This is urgent.

Please help.

Thank you very much.

Ha.

 

________________________________

From: Michael B. Smith [mailto:michael@xxxxxxxxxx] 
Sent: Tuesday, June 28, 2005 7:44 AM
To: [ExchangeList]
Subject: [exchangelist] RE: Script to create mailbox for Exchange 2003

 

http://www.MSExchange.org/

Yes.

 

Are the accounts already mailbox-enabled? Mail-enabled? Do they already
have email addresses? You need to describe the set up more than you
have.

 

________________________________

From: NGUYEN HONG HA [mailto:HANH.EVNIT@xxxxxxxxxx] 
Sent: Monday, June 27, 2005 8:28 PM
To: [ExchangeList]
Subject: [exchangelist] Script to create mailbox for Exchange 2003

http://www.MSExchange.org/

Dear everyone,

We have a CSV file with 2 colums:

Account

Email

namlh

namlh.ttd1@xxxxxxxxxx

tuanlv

tuanlv.a2@xxxxxxxxxx

tungvm

tungvm@xxxxxxxxxx

 

As you see, the first column is the account, the second column is the
e-mail address (in fact, there are thousands of rows of account and
email).

My Windows 2003 already have all the accounts in the account column.

Is there any way to create all the email in the email column
corresponding to the account in the account column ?

This is very urgent.

Please help.

Thanks so much.

Ha.

Other related posts: