Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Add-IPBlockListEntry

 

Applies to: Exchange Server 2013

Topic Last Modified: 2014-01-12

This cmdlet is available or effective only on an Edge Transport server.

Use the Add-IPBlockListEntry cmdlet to add IP Block list entries to the IP Block list that's used by the Connection Filtering agent on Edge Transport servers.

Add-IPBlockListEntry -IPRange <IPRange> <COMMON PARAMETERS>
Add-IPBlockListEntry -IPAddress <IPAddress> <COMMON PARAMETERS>
COMMON PARAMETERS: [-Comment <String>] [-Confirm [<SwitchParameter>]] [-ExpirationTime <DateTime>] [-Server <ServerIdParameter>] [-WhatIf [<SwitchParameter>]]

This example adds the IP address 192.168.0.100 to the list of blocked IP addresses.

Add-IPBlockListEntry -IPAddress 192.168.0.100 

This example adds the IP address range 192.168.0.1/24 to the list of blocked IP addresses and configures the IP Block list entry to expire at 23:59 on January 3, 2013.

Add-IPBlockListEntry -IPRange 192.168.0.1/24 -ExpirationTime "1/3/2013 23:59"

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 - Edge Transport" entry in the Anti-Spam and Anti-Malware Permissions topic.

 

Parameter Required Type Description

IPAddress

Required

System.Net.IPAddress

The IPAddress parameter specifies a single IP address to add to the IP Block list, for example, 192.168.0.1.

IPRange

Required

Microsoft.Exchange.Data.IPRange

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

  • CIDR IP    192.168.0.1/24

  • IP address range   192.168.0.1-192.168.0.254.

Comment

Optional

System.String

The Comment parameter specifies an optional comment. If you specify a value that contains spaces, enclose the value in quotation marks ("), for example: "This is an admin note".

Confirm

Optional

System.Management.Automation.SwitchParameter

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.

ExpirationTime

Optional

System.DateTime

The ExpirationTime parameter specifies a day and time when the IP Block 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.

Use the short date format defined in the Regional Options settings for the computer on which the command is run. For example, if the computer is configured to use the short date format mm/dd/yyyy, enter 03/01/2010 to specify March 1, 2010. You can enter the date only, or you can enter the date and time of day. If you enter the date and time of day, you must enclose the argument in quotation marks ("), for example, "10/05/2010 5:00 PM".

Server

Optional

Microsoft.Exchange.Configuration.Tasks.ServerIdParameter

The Server parameter specifies the Exchange server on which you want to run this command. You can use any value that uniquely identifies the server. For example:

  • Name

  • FQDN

  • Distinguished name (DN)

  • Exchange Legacy DN

If you don't use the Server parameter, the command is run on the local server.

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

WhatIf

Optional

System.Management.Automation.SwitchParameter

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.

To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.

To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.

 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.