Exchange Edge Server Safe List Aggregation – Automated!

Posted by: Justin

While the Edge server role is a great idea for Exchange 2007, it seems to lack some basic functionality. I had one client that wished to have the Outlook client safe sender lists aggregated automatically every day…so I cooked this up. Seems to work fine!

Schedule this to run every 24 hours to update user’s safe list’s generated in Outlook (put code below into a .bat file on the edge server).

“%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe” -psconsolefile “e:\exchange\bin\exshell.psc1″
-command “Get-Mailbox | where {$_.RecipientType -eq [Microsoft.Exchange.Data.Directory.Recipient.RecipientType]::MailboxUser } | Update-Safelist”

After you save your file, run this on the edge server to create the scheduled task

at 23:00 /every:M,T,W,Th,F,S,Su  cmd /c "c:\[path to file]\[file name].bat"

Comments are closed.