Azure-Sentinel/Playbooks/Block-ExchangeIP/Block-ExchangeIP.ps1

10 строки
272 B
PowerShell
Исходник Обычный вид История

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