[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

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.
0
bsandeman
Asked:
bsandeman
  • 2
1 Solution
 
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
 
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now