Send alert by email to user for empty attributes.
Hi , I want to send users alert for empty attributes. I wan to send them a alert that your phone no . field is empty please update it. For this purpose I need a script to find out null value for mentioned attribute In active directory and send email to user that these attributes are showing empty in your prfile. Please help me out. Exchange Admin
September 29th, 2009 1:41pm

Please post this in Developer Forum to get assistance with scripts http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/threads Vinod |CCNA|MCSE 2003 +Messaging|MCTS|ITIL V3|
Free Windows Admin Tool Kit Click here and download it now
September 29th, 2009 1:46pm

Yes! this is not a right place. However i think this script may help you checking the Attribute in AD. You need to install ActiveRoles Management Shell for Active Directory . #Script Starts... function SendMail ($recipient) { $SmtpClient = new-object system.net.mail.smtpClient $MailMessage = New-Object system.net.mail.mailmessage $SmtpClient.Host = $relayserver $mailmessage.from = "From SMTP id." $mailmessage.To.add($recipient) $mailmessage.Subject = "Please update the details..." $mailmessage.IsBodyHTML = $true $mailmessage.Body = $body $smtpclient.Send($mailmessage) } $relayserver = Read-Host "Enter Relay Server which is used to send mails to users" #send mail one by one... Get-QADuser | foreach { if ($_.PhoneNumber -eq $null -or $_.manager -eq $null) { $recipient = $_.Email #you can have a HTML file called in here $body = "Please Update your phone numbers" sendmail($recipient) } } #Script ends... Hope this helps. Thanks. Vishal Ramnani | MCITP - Exchange 2007 | MCSE Messaging | MCTS - Win 2008 Config
September 29th, 2009 4:31pm

no...... this not iam looking for.Exchange Admin
Free Windows Admin Tool Kit Click here and download it now
September 30th, 2009 8:16am

HI,Your issuse very close to Exchange developement,So please post an thred in the development section as well.ResourceDevelopmentforumregards Chinthaka Shameera | MCITP: EA | MCSE: M | http://howtoexchange.wordpress.com/
September 30th, 2009 9:14am

Yes, in order to resolve the issue more efficiently,we suggest youwrite the post on our development forum.
Free Windows Admin Tool Kit Click here and download it now
September 30th, 2009 11:33am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics