Applies to: Exchange Server 2010

Topic Last Modified: 2011-03-19

Use the Add-IPAllowListEntry cmdlet to add an IP address or IP address range to the IP Allow list configuration information for the Connection Filter agent on a computer that has the Hub Transport server role or Edge Transport server role installed.

Add-IPAllowListEntry -IPRange <IPRange> [-Comment <String>] [-Confirm [<SwitchParameter>]] [-ExpirationTime <DateTime>] [-Server <ServerIdParameter>] [-WhatIf [<SwitchParameter>]]

Add-IPAllowListEntry -IPAddress <IPAddress> [-Comment <String>] [-Confirm [<SwitchParameter>]] [-ExpirationTime <DateTime>] [-Server <ServerIdParameter>] [-WhatIf [<SwitchParameter>]]

Parameter Required Type Description




The IPAddress parameter specifies a single IP address to add to the IP Allow list, for example,




The IPRange parameter specifies a range of IP addresses to add to the IP Allow list. You can use the following formats:

  • CIDR IP   You can use Classless InterDomain Routing (CIDR), for example,
  • IP range    You can use an IP address range, for example,




The Comment parameter specifies administrative notes or reminders about this specific entry. You must enclose the value of the Comment parameter in quotation marks ("), for example, "this is an admin note".




The Confirm switch causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm switch.




The ExpirationTime parameter specifies a day and time when the IP Allow list entry that you're creating will expire. If you specify a time only, and you don't specify a date, the current day is assumed. When you enter a specific date, use the short date format defined in the Regional Options settings configured on the local computer. For example, if your computer is configured to use the short date format mm/dd/yyyy hh:mm:ss, to set the expiration time at 11:00 January 3, 2010, enter the following information, enclosed in quotation marks ("): "1/3/2010 11:00".




The Server parameter specifies a Hub Transport server on which to run this command. If you don't use the Server parameter, the command is run on the local server.

You can't use this command to configure other Edge Transport servers remotely.




The WhatIf switch instructs the command to simulate the actions that it would take on the object. By using the WhatIf switch, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf switch.

You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Anti-spam features" entry in the Transport Permissions topic.

This example adds the IP address to the list of allowed IP addresses.

Add-IPAllowListEntry -IPAddress 

This example adds the IP address range to the list of allowed IP addresses and configures the IP Allow list entry to expire at 23:59 on January 3, 2010.

Add-IPAllowListEntry -IPRange -ExpirationTime "1/3/2010 23:59"