HostedConnectionFilterPolicy
Applies to : Exchange Online, Built-in security add-on for on-premises mailboxes
This cmdlet is available only in the cloud-based service.
Use the Set-HostedConnectionFilterPolicy cmdlet to modify the settings of connection filter policies in your cloud-based organization.
For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.
You need to be assigned permissions before you can run this cmdlet. Although this article lists all parameters for the cmdlet, you might not have access to some parameters if they aren't included in the permissions assigned to you. To find the permissions required to run any cmdlet or parameter in your organization, see Find the permissions required to run any Exchange cmdlet.
Available cmdlets
Parameters
| Name | Type | Default value | Accepted values |
|---|---|---|---|
| AdminDisplayName | String | ||
| ConfigurationXmlRaw | String | ||
| EnableSafeList | Boolean | ||
| IPAllowList | MultiValuedProperty | ||
| IPBlockList | MultiValuedProperty | ||
| MakeDefault | SwitchParameter |
Examples
Example 1
Set-HostedConnectionFilterPolicy "Default" -IPAllowList 192.168.1.10,192.168.1.23 -IPBlockList 10.10.10.0/25,172.17.17.0/24 This example modifies the connection filter policy named Default with the following settings:
- Messages from 192.168.1.10 and 192.168.1.23 are never identified as spam.
- Messages from 10.10.10.0/25 and 172.17.17.0/24 are always identified as spam.
Example 2
Set-HostedConnectionFilterPolicy "Default" -IPAllowList @{Add="192.168.2.10","192.169.3.0/24","192.168.4.1-192.168.4.5"; Remove="192.168.1.10"} This example modifies the connection filter policy named Default with the following settings:
- The following IP addresses are added to the existing values in the IP allow list: 192.168.2.10, 192.169.3.0/24 and 192.168.4.1-192.168.4.5.
- The IP address 192.168.1.10 is removed from the existing values in the IP allow list.