Link to home
Start Free TrialLog in
Avatar of atkfrg56
atkfrg56

asked on

External email via contact in AD Active Directory.... with full automation, possibly using dsadd.exe

How Can I do this solution via the 'dsadd.exe' command line automation so I can build batch scripts and such...or perhaps another method to get the same results? Link below to manual solution, need automated solution.
https://www.experts-exchange.com/questions/20615280/Add-External-Email-to-Exchange-2000-Distribution-List.html


Goals -
1. fully automated via commandline (DOS Prompt)
2. add a contact or such to a DL Distrobution List, so that sending an email to list@localdomain.com/list@domain.local sends emails to all the contacts that are external person@externalyahoo.com
Avatar of Robing66066
Robing66066

I think this is what you are looking for.  Check halfway down under Examples.  There is a section there that explains how to add a user to all administrator distribution lists.  This should be easily adaptable to allow for the addition of the user to any group you'd like.  (You could even use parameters in your batch file to allow it to add based on names and DL's you feed it.)

Good luck.

http://www.microsoft.com/windowsxp/home/using/productdoc/en/default.asp?url=/WINDOWSXP/home/using/productdoc/en/dsmod_group.asp
Avatar of atkfrg56

ASKER

Ok, I think I didnt specify the goals correctly to reflect the Question link. I was trying to say... to complete the referenced question Q_20615280... but have it automated, and my goals were summed up after reading that question.

The main part that isnt working is to have a new contact...with an external email address. I can Manually do it using the Question link Q_20615280, I can do a contact with external email....manually doing it works fine. My problem is, I need to automate the process with dsadd.exe. The above post tells me how to add a contact to a DL, which is the next step after that.

Goals -
1. fully automated via commandline (DOS Prompt)
2. make a contact (fully automated via step 1) that has a working external email address
3. Add the contact to a DL [done]
4. When done, I should email list@localdomain.com and all contacts in that DL will get emails via their external email addresses
ASKER CERTIFIED SOLUTION
Avatar of Robing66066
Robing66066

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hmm, I am going to try and work with those links more. It just doesnt want to send email to them.

On a second note...I can only create exchange mailboxes on the exchange/AD server. If I connect to the server via the Windows 2003 Admin Pack on Windows XP SP2, I get most of the options except for exchange options - create email account, manage it, etc.
Good luck.