locked
Automated Exchange 2007 email to new users in a certain business unit RRS feed

  • Question

  • 
    
    
    
    

    Hi,

    Does anyone know if it is possible to implement a system in Exchange 2007 where it can automactically send a specific welcome message email to a new mailenabled user when it is created in AD that has a certain business name in the company attribute field of the user account?

    Even if it was a manual Powershell script that could create the mailbox and then send the mail if the conditions of the company = ACME for example or if it could check AD accounts with this value in the company field and check if the creation date is < 1 day?

    Many thanks for any information

    
    
    
    
    Wednesday, May 30, 2012 4:21 PM

All replies

  • Please check the follow link for your question:

    http://social.technet.microsoft.com/Forums/en-US/exchangesvrgeneral/thread/7d9efed5-11a8-4eb9-a9e8-329cab57ef2d

    If you want to get the user whose company attribute = ACME, you can set the filter like:

    $NewUsers = Get-User -ResultSize Unlimited | Where {$_.company -eq 'ACME' -and ($_.WhenCreated -gt (get-date).addhours(-12))}
    
     


    Nile Jiang- Please mark the post as answer if it answers your question. http://www.usefulshare.com

    Tuesday, June 19, 2012 7:29 AM