Creating Outlook Exchange email account automatically when user logs in

Hello

Here i have a routine task to do whenever a new user is created/or a system is reinstalled....
someone has to go to user pc and Create the Exchange Email account for that user.(as most users do not know how to do it) i want this process to be automated.. so whenever a user is logging in for the first time.. their email account is automatically created. can someone provide with a nice vbscript code for that?
another thing i'd appreciate if someone tells me how could we delete existing Exchange Email account ?

Is there a way to do it remotely without having the user to log in first?
LVL 17
Muhammad KhanManager, ITAsked:
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.

cubixSoftwareCommented:
Hi

to create your email accounts have a look at

http://www.codecomments.com/archive299-2005-2-408381.html


HTH :)
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
Muhammad KhanManager, ITAuthor Commented:
Can you please tell me...

does this script does the same thing as going to Control panel->Mail->Add Email Account->Microsoft Exchange Server?

or it has something to do with Microsoft Exchange administration? please be clear that i am neither exhange server administrator or Active Directory administrator ... so i don't have rights to create users ..
0
cubixSoftwareCommented:
It would be a very bug security hole if we could run scripts that did something that we are not actually authorised to do via the control panel etc !

If you do not have the rights then if you right-click an application / script you get an option called "Run As..." and this allows you to enter a user name and their password and the application will run using those permissions.

Yes I know that means you have to know an admin password, but how else would security work ?

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.

Muhammad KhanManager, ITAuthor Commented:
I think you misunderstood me...
What i have seen is... whenever a new user logs into the system. he is not able to access his mailbox via outlook... so we have to go to control panel to create an email account ...
0
cubixSoftwareCommented:
I understand that, and that is why you are wanting a script that when the user logs on it automatically checks if they have an email account setup and if not actually do the setup, therefore eliminating the need for you (or an administrator) to go through control panel to create the email account.

This seems to be what you want to do

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_esdk_samples_createmailboxbeforelogon_intro.asp


Another method for you could be to use CRUM55. I do not have any personal experience of this however doing some reading it is some form of script that creates users and mailboxes automatically. See the following link

http://www.windowsitpro.com/MicrosoftExchangeOutlook/Article/ArticleID/39177/39177.html

0
cubixSoftwareCommented:
did this help ?
0
Muhammad KhanManager, ITAuthor Commented:
thanx for these links cubixsoftware but this didn't help.. because i am not an EXCHANGE server administrator. i dont have user passwords with me..

See what we do

we ask user to log on.. then we double click Outlook.. Outlook asks for the configuration... we select Add Email account and from next screen we select Microsoft Exchange Server... we enter the mailboxname (mostly same as the username) and the exchange server address and if user has the rights... mailbox open directly.. otherwise user is asked for the password everytime they open the mailbox..

I want to autmate the above configuration steps..
0
cubixSoftwareCommented:
sorry maybe I didn't explain myself clearly.

These scripts are not for you to run but they should be built into the user's logon script so when they logon they will run the script under their user profile / permissions which should be okay as you do everything manually once the user has logged on.
0
Muhammad KhanManager, ITAuthor Commented:
I think there is a big confusion between what you say and what i understand :-( and this is all because i am a dump.. :-(

see... ur first link takes me to msdn which says that this scripts require usename and passwords to create user accounts / mailboxes etc..

the other one takes me to some site which doesn't let me read the article until i spend some bucks which i dont have.. :-(

so what to do
0
cubixSoftwareCommented:
hey the fault probably lies at my end so don't beat yourself up about it !

In the dim and distant past I remember something along the lines of OUTLOOK.prf and this may help

http://office.microsoft.com/en-us/assistance/HA011402581033.aspx


This is really my last shot at this so I hope it is of use to you, otherwise I will have to wait for a greater expert to get involved....

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
Visual Basic Classic

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.