Exchange Distribution Lists

How can I create and modify a server based Distribution list using VB Code accessing an Exchange Server (v5.0)?
FYI: I need to run the application from the user's script file so that I can add the currently logged on users to a distribution list for that day.
LVL 1
bsandemanAsked:
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.

RickB071099Commented:
The easiest way to add users is using the Exchange Administrator Program in the import mode, although there will be a slight delay with the following method between the user logging on and his mailbox appearing in the distribution list.
Create a shared folder on a server that has the Exchange console installed. In this folder, create a csv file to use as an import file to the Exchange folder. The easiest way create the appropriate header in the file is to export a distribution list and use the fist line as the first line in your import file.
You will need to write a program to use in the login script that will add the users information to this csv, so that when the csv is imported, the user will be added to the appropriate distribution list.
To perform the import, you will need a second program running periodically on the server to import the data to exchange using admin.exe in the import mode.
To run the import periodically, set up the Task Schedular service to start automatically with a user id and password that has Exchange Administrator rights. Schedule a task to run at whatever frequency is appropriate for your environment.
All this assumes that you will have access to the appropriate data for the user to tie his logon id to his mailbox on the server. At our shop, the userid is the alias for the mailbox so this is an easy link. We currently use a similar routing to update the personal information in exchange from or mainframe personnel system.
There were several papers in the Exchange Conference (98) that dealt with admin.exe and how to use it to maintain the Exchange directory.
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
bsandemanAuthor Commented:
Thanks Rick,
I don't have much time on my hands at the moment, but when I'm back from Tenerife in 3 weeks I will grade this for you.  Sorry I can't do it sooner, but I'm working on a very important project this week, I have no time for internal issues it seems....
cheers
Bruce
0
bsandemanAuthor Commented:
Thanks Rick,
But I've come up with a more cunning solution using ADSI and Exchange 5.5
cheers
Bruce

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.