• Nenhum produto no carrinho.

EX2K7 – Exportando a lista de antispam

You need to create a file called Export-Anti-Spam.ps1

Open this file with your favorite text editor and add the following script:

$ipAllowCmdlet = “Add-IPAllowListEntry -IPRange:’{0}’”
$ipBlockCmdlet = “Add-IPBlockListEntry -IPRange:’{0}’”

$allowListEntries = get-ipallowlistentry
foreach ($allowListEntry in $allowListEntries)
{
if (($allowListEntry -ne $null) -AND ($allowListEntry.HasExpired -ne $true))
{
$output = $ipAllowCmdlet -f $allowListEntry.IPRange.ToString(), $allowListEntry.ExpirationTime.ToString()
write-output $output
}
}

$blockListEntries = get-ipblocklistentry
foreach ($blockListEntry in $blockListEntries)
{
if (($blockListEntry -ne $null) -AND ($blockListEntry.HasExpired -ne $true))
{
$output = $ipBlockCmdlet -f $blockListEntry.IPRange.ToString(), $blockListEntry.ExpirationTime.ToString()
write-output $output
}
}

Save the file and open the Microsoft Exchange PowerShell.
Navigate to the directory where you saved the script.

Type in the following command:

Export-Anti-Spam.ps1 > Full-Anti-Spam-Export.ps1

Now this file ( Full-Anti-Spam-Export.ps1 ) contains every entry you entered in the Block and Allow list of the existing Exchange server.

Copy the “Full-Anti-Spam-Export.ps1″ to the new Exchange server
Open the Microsoft Exchange PowerShell and navigate to the directory where you copied the file.

Type in the following command:

Full-Anti-Spam-Export.ps1

Fonte: http://www.all-about-it.nl/?p=147

01/11/2011
WB - Todos os direitos reservados
X