Exchange 2010

Samlar lite kommandon som är bra att ha här…

Funktioner:

Antispam – Enable på serverns via script

1. %system drive%/Program Files\Microsoft\Exchange Server\V14\Scripts folder.
./install-AntispamAgents.ps1
2. After the script has run, restart the Microsoft Exchange Transport service by running
the following command.
Restart-Service MSExchangeTransport
Powershell script to check spam reports form blocked messages
Get-AgentLog | Where {$_.Action -ne ”AcceptMessage” -and $_.IPAddress -ne $() } | Group-Object Reason | ft count,name -Autosize
Get-AgentLog | Where {$_.Action -ne ”AcceptMessage” -and $_.IPAddress -ne $() } | Group-Object Agent | ft count,name -AutoSize
Get-AgentLog | Where {$_.Action -ne ”AcceptMessage” -and $_.IPAddress -ne $() } | Group-Object Recipients| ft count,name -AutoSize
Get-AgentLog | Where {$_.Action -ne ”AcceptMessage” -and $_.IPAddress -ne $() }
Whitelisting:
Set-ContentFilterConfig -BypassedSenders Sender1@test.com,Sender2@test.se
Visa whitelistingen med:
Get-ContentFilterConfig

Lämna ett svar