2020-02-23 16:17:32 +03:00
|
|
|
|
Param
|
|
|
|
|
(
|
|
|
|
|
[Parameter (Mandatory= $true)]
|
|
|
|
|
[String] $IPToBeBlocked
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
Import-Module 'C:\Program Files\Microsoft\Exchange Server\V15\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto -ClientApplication:ManagementShell
|
|
|
|
|
|
2020-02-24 19:04:17 +03:00
|
|
|
|
Add-IPBlockListEntry -IPAddress $IPToBeBlocked
|