Add contact to Distribution list

R

rwh

This may be more of an Active Directory question but many of you may
know how to do this.

I have several "Contacts" setup in an OU. I also have a Global
Distribution List setup.
I want to srcipt adding those contacts to the DL.
I know how to add users but I can't seem to add contacts.

This is how I add users with a batch script
net group DL User /ADD /DOMAIN

But it doesn't work when using the Alias or Display name of a contact

Anyone have a clue on how to do this with a batch script?
 
R

rwh

I figured out how to do it with the dsmod utility
I run this code from my batch script.


dsmod group "cn=GROUPNAME,ou=GROUPS,dc=mydomain,dc=domain,dc=com"
-addmbr "CN=Conatct Name,OU=Contacts For
Lists,DC=mydomain,DC=domain,DC=com"

Line is meant to be 1 long string, Be careful of line wrap.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top