RE: Script to create mailbox for Exchange 2003

  • From: NGUYEN HONG HA <HANH.EVNIT@xxxxxxxxxx>
  • To: "'[ExchangeList]'" <exchangelist@xxxxxxxxxxxxx>
  • Date: Wed, 29 Jun 2005 07:28:27 +0700

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
<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.

------------------------------------------------------
List Archives: http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
Exchange Newsletters: http://www.msexchange.org/pages/newsletter.asp
Exchange FAQ: http://www.msexchange.org/pages/larticle.asp?type=FAQ
------------------------------------------------------
Other Internet Software Marketing Sites:
World of Windows Networking: http://www.windowsnetworking.com
Leading Network Software Directory: http://www.serverfiles.com
No.1 ISA Server Resource Site: http://www.isaserver.org
Windows Security Resource Site: http://www.windowsecurity.com/
Network Security Library: http://www.secinf.net/
Windows 2000/NT Fax Solutions: http://www.ntfaxfaq.com
------------------------------------------------------
You are currently subscribed to this MSEXchange.org Discussion List as:
michael@xxxxxxxxxx
To unsubscribe visit
http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
Report abuse to listadmin@xxxxxxxxxxxxxx
------------------------------------------------------
List Archives: http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
Exchange Newsletters: http://www.msexchange.org/pages/newsletter.asp
Exchange FAQ: http://www.msexchange.org/pages/larticle.asp?type=FAQ
------------------------------------------------------
Other Internet Software Marketing Sites:
World of Windows Networking: http://www.windowsnetworking.com
Leading Network Software Directory: http://www.serverfiles.com
No.1 ISA Server Resource Site: http://www.isaserver.org
Windows Security Resource Site: http://www.windowsecurity.com/
Network Security Library: http://www.secinf.net/
Windows 2000/NT Fax Solutions: http://www.ntfaxfaq.com
------------------------------------------------------
You are currently subscribed to this MSEXchange.org Discussion List as:
hanh.evnit@xxxxxxxxxx
To unsubscribe visit
http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
Report abuse to listadmin@xxxxxxxxxxxxxx 

------------------------------------------------------
List Archives: http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
Exchange Newsletters: http://www.msexchange.org/pages/newsletter.asp
Exchange FAQ: http://www.msexchange.org/pages/larticle.asp?type=FAQ
------------------------------------------------------
Other Internet Software Marketing Sites:
World of Windows Networking: http://www.windowsnetworking.com
Leading Network Software Directory: http://www.serverfiles.com
No.1 ISA Server Resource Site: http://www.isaserver.org
Windows Security Resource Site: http://www.windowsecurity.com/
Network Security Library: http://www.secinf.net/
Windows 2000/NT Fax Solutions: http://www.ntfaxfaq.com
------------------------------------------------------
You are currently subscribed to this MSEXchange.org Discussion List as:
michael@xxxxxxxxxx
To unsubscribe visit
http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
Report abuse to listadmin@xxxxxxxxxxxxxx
------------------------------------------------------
List Archives: http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
Exchange Newsletters: http://www.msexchange.org/pages/newsletter.asp
Exchange FAQ: http://www.msexchange.org/pages/larticle.asp?type=FAQ
------------------------------------------------------
Other Internet Software Marketing Sites:
World of Windows Networking: http://www.windowsnetworking.com
Leading Network Software Directory: http://www.serverfiles.com
No.1 ISA Server Resource Site: http://www.isaserver.org
Windows Security Resource Site: http://www.windowsecurity.com/
Network Security Library: http://www.secinf.net/
Windows 2000/NT Fax Solutions: http://www.ntfaxfaq.com
------------------------------------------------------
You are currently subscribed to this MSEXchange.org Discussion List as:
hanh.evnit@xxxxxxxxxx
To unsubscribe visit
http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
Report abuse to listadmin@xxxxxxxxxxxxxx 

Other related posts: