Get-IPBlockListEntry (RTM)

Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.

 

Applies to: Exchange Server 2007

Use the Get-IPBlockListEntry cmdlet to obtain information about the IP address configuration for the Connection Filter agent for the computer on which the command is run.

Syntax

Get-IPBlockListEntry [-Identity <IPListEntryIdentity>]

Get-IPBlockListEntry -IPAddress <IPAddress>

Detailed Description

The IP Block list is used by the Connection Filter agent.

To run the Get-IPBlockListEntry cmdlet, the account you use must be delegated the following:

  • Exchange View-Only Administrators role

To run the Get-IPBlockListEntry cmdlet on a computer that has the Edge Transport server role installed, you must log on by using an account that is a member of the local Administrators group on that computer.

For more information about permissions, delegating roles, and the rights that are required to administer Microsoft Exchange Server 2007, see Permission Considerations.

Parameters

Parameter Required Type Description

IPAddress

Required

System.Net.IPAddress

If you want to view the IP Block list entry or entries that contain a specific IP Address, use the IPAddress parameter to specify an IP address. For example, if you have an IP Block List entry that specifies a range of IP addresses from 192.168.0.1 to 192.168.0.20, enter any IP address in the IP Block List IP address range to return the IP Block list entry.

Identity

Optional

Microsoft.Exchange.Configuration.Tasks.IPListEntryIdentity

If you want to view a specific IP Block list entry, use the Identity parameter to specify the configuration number. When you add an IP address to the IP Block list, the Identity parameter is automatically incremented.

Input Types

Return Types

Errors

Error Description

 

Example

The first code example shows a Get-IPBlockListEntry command that returns machine-generated entries that are inserted by sender reputation.

The second code example shows a Get-IPBlockListEntry command that deletes machine-generated entries that expired 14 days ago.

Get-IPBlockListEntry | where { $_.IsMachineGenerated }
Get-IPBlockListEntry | where { $_.IsMachineGenerated -and $_.ExpirationTime -lt (date).AddDays(-14) } | Remove-IPBlockListEntry