Синтаксис
add-whitelist.ps1 domain.ru
Сам скрипт
param($domainwl) $list = (Get-ContentFilterConfig).BypassedSenderDomains $list.Add($domainwl) Set-ContentFilterConfig -BypassedSenderDomains:$list (Get-ContentFilterConfig).BypassedSenderDomains
Синтаксис
add-whitelist.ps1 domain.ru
Сам скрипт
param($domainwl) $list = (Get-ContentFilterConfig).BypassedSenderDomains $list.Add($domainwl) Set-ContentFilterConfig -BypassedSenderDomains:$list (Get-ContentFilterConfig).BypassedSenderDomains