0

Is it possible to add / remove a user from a outlook Distribution List using a program? I am not referring to the DLs in the local contacts list but the global address book. I have the permission to add / remove a user.

Also, is it possible to retrieve the users list with their properties based on the DL name?

Is it possible using vbscript or some other language?

2
  • Can you please edit your question and clarify what DL means? I assume you mean Distribution List, but let's not assume. Commented Dec 16, 2011 at 5:48
  • I don't have the time to write a proper answer now, but I have done this before with PowerShell. Commented Dec 17, 2011 at 15:58

1 Answer 1

1

This is very easy with the Redemption library.

set Session = CreateObject("Redemption.RDOSession")
Session.Logon
set Contacts = Session.GetDefaultFolder(olFolderContacts)
set DL = Contacts.Items.Add("IPM.DistList")
DL.DLName = "sample distribution list"
DL.AddMember("test <[email protected]>")
DL.Save

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .