9Jun/100
Backup/Restore/Manage your Exchange whitelist using exchange management shell
I will show you today how to manage, backup and restore you sender safe list on Exchange 2007 and 2010 using exchange management shell cmdlets.
To add a entry
$SafeSenders = (Get-ContentFilterConfig).bypassedSenders $SafeSenders.Add("user@safedomain.com") Set-ContentFilterConfig -BypassedSenders $SafeSenders
To remove an entry
$SafeSenders = (Get-ContentFilterConfig).bypassedSenders $SafeSenders.Remove("user@domain.com") Set-ContentFilterConfig -BypassedSenders $SafeSenders
To backup the list
Of course you can use the ExportEdgeConfig.ps1 script to do it, however you might want to backup just the sender safe list in that case use the following script
(Get-ContentFilterConfig).bypassedSenders | export-csv c:\SafeList.csv
To restore the list
Set-ContentFilterConfig -BypassedSenders:$null $SafeList = (Get-ContentFilterConfig).bypassedSenders import-csv C:\SafeList.csv | foreach{ $email = $_.local += "@"; $email += $_.domain; $SafeList.add($email)} Set-ContentFilterConfig -BypassedSenders:$SafeList
Enjoyed the post, what is next?
Grab our FULL RSS feed! or Email Updates then share it

