Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

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.
http://www.experts-exchange.com/Applications/Email/Q_20615280.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
0
atkfrg56
Asked:
atkfrg56
  • 3
  • 2
1 Solution
 
Robing66066Commented:
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
0
 
atkfrg56Author Commented:
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
0
 
Robing66066Commented:
I think this should do it here (for the user portion):

http://www.windowsitpro.com/Article/ArticleID/40363/40363.html

Just add those commands to a batch file and off they go.  If you don't know how to create/write a batch file, let me know and I'll see if I can throw one together for you.

In addition, here is an excellent page on using these tools to get anything you want done:

http://blogs.technet.com/jhoward/archive/2005/01/27/361415.aspx

There is also a good video on it here (you'll have to join the site to see it)

http://www.winstructor.com/videos/server2003/user_accounts.htm

0
 
atkfrg56Author Commented:
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.
0
 
Robing66066Commented:
Good luck.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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