Add Active Directory User and Mail Enable Account from Command Line

Is there a way to add users from the command line that will be mail enabled in a certain mailbox store on a certain Exchannge server?

I have 2 Exchange 2000 servers and 4 mailbox stores between the 2. They are in the same site and org. We want to be able to create new users and mail enable them in a certain mailbox store on a certain Exchange server.

I looked at the dsadd.exe and the dsmod.exe utils but they don't seem to be able to enable the mailbox on a certain store or exchange server.
mmurfmisAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David WilhoitSenior Consultant, ExchangeCommented:
hey mike,

Mail enabling is not the same as creating a mailbox. Mail-enabled only gives them an address, does not create a mailbox. Separate process. Make sense?

How's the other issue?

D
0
mmurfmisAuthor Commented:
Hey D,

I see what your saying, but is there is way to create a mailbox from the command line to be in a certain mailbox store on a certain server?

I need a way to automate this process, create user, mailbox, in a mailbox store that I specify on a exchange server that I specify.

Possible?

As for the other issues, I haven't even looked into them yet. I was talking with the project manager for this whole thing and they wanted me to look into this first.
0
David WilhoitSenior Consultant, ExchangeCommented:
ok. well, I think that it's possible, but it will be a VBscript or ADSI script, where my knowledge is somewhat limited. but I'll check my resources at the house....

D
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

David WilhoitSenior Consultant, ExchangeCommented:
Nice, sven, I appreciate that :)

D
0
mmurfmisAuthor Commented:
Looks like someone is going to need some VB training. One thing I am not is a programmer. Will this allow us to create users and mailboxes?
0
svenkarlsenCommented:
Any time Kidego, - but I'm an amateur on scripting, so the real job is still up to you: a synopsis for the required solution ?

;-)

mmurfmis:
don't let scripting scare you off, - you've probably made some batch-jobs of various kinds, and this is only a little bit worse.

I'm no wizard at coding either (They call me PasteAndCopy;-), so if you're like me, take a look at this one:

http://www.microsoft.com/technet/treeview/default.asp?url=/technet/scriptcenter/tools/admatic.asp

it's a script generator that helps you write ADSI scripts (AND: it's from Microsoft!, AND: it's free!).

Have fun!


Regards,
Sven

AND: I get no whatsoever personal benefit from promoting MS ;-)
0
David WilhoitSenior Consultant, ExchangeCommented:
LOL. Here guys, is a link I found, you have to register at the site, but it's free, and I think it's worth it just for the script.


http://www.winnetmag.com/Article/ArticleID/25843/Windows_25843.html

D
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
svenkarlsenCommented:
Thanks Kidego
knew it was out there somewhere!

Regards
Sven

PS. mmurfmis: all points to kidego!
0
mmurfmisAuthor Commented:
Kidego that article is perfect. Sven, thanks for all your help, I think that script generator will come in handy also.

Thanks
0
David WilhoitSenior Consultant, ExchangeCommented:
Hey Sven, I'll post a question with points for you. No good deed should go unpunished...I mean, unrewarded :)

D
0
mmurfmisAuthor Commented:
I guess I should have been the one to do that....sorry, I wasn't thinking....though I think Kidego has a few points to spare.... :-)

Thanks again
0
David WilhoitSenior Consultant, ExchangeCommented:
yea, maybe a few...don't worry about it Mike, my pleasure. Never get to use my points!

D
0
David WilhoitSenior Consultant, ExchangeCommented:
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.