Automating emails from AD

Is it possible to create a script, or install a program, which will send an email when a new user is created in Active Directory?
When we set up a user, we have to send an email to our head office to create an aliase entry in thier mail server. Sendmail used to work with older versions of Exchange, but not with Exchange 2003.
sapa44Asked:
Who is Participating?
 
David LeeConnect With a Mentor Commented:
It's not very diffuclt.  Something like the script on this page: http://www.jsifaq.com/SF/Tips/Tip.aspx?id=5297
Of course you can do more than what's shown here.  You can fill in pretty much any AD user account property, create a mailbox, create a home directory and set permissions on it, add teh account to various groups, etc.  The only limit is figuring out how to script a particular action.  
0
 
David LeeCommented:
Hi, sapa44.

This would require a service or program that would constantly monitor AD watching for new accounts being created.  It's not impossible, but I'm not aware of any built-in means of doing this.  A different approach would be to use a script to create the new accounts and in that script include a routine for sending the email.  That actually seems to me like a much better approach since it provides a means for handling other automatic tasks associated with creating a new account.  
0
 
sapa44Author Commented:
Hi,

Thanks for the reply, I did think it might have to be a script. Any ideas as to how difficult this script would be? If its an big job I will have to grin and bear it the manual way.
0
 
sapa44Author Commented:
Thanks for your help, that looks like what I'm after. Will need to play with the script I think to get the right result.
0
 
David LeeCommented:
You're welcome.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.