可以每12小时执行下列脚本(注:需要根据实际情况修改)
===========
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin
$NewUsers = Get-User -ResultSize Unlimited | Where {($_.WhenCreated -gt (get-date).addhours(-12))}
foreach ($NewUser in $NewUsers)
{
$SmtpClient = new-object system.net.mail.smtpClient
$MailMessage = New-Object system.net.mail.mailmessage
$SmtpClient.Host = "HubTRole.domain.com"
$mailmessage.from = ("
Admin@domain.com")
$Recipient = (Get-Recipient $NewUser.identity).PrimarySMTPAddress
$mailmessage.To.add($Recipient)
$mailmessage.Subject = “Message Subject”
$mailmessage.Body = “Type Body Here...”
$smtpclient.Send($mailmessage)
}
FYI:
http://social.technet.microsoft.com/Forums/en-US/exchangesvrgeneral/thread/7d9efed5-11a8-4eb9-a9e8-329cab57ef2d