Edit

Share via


Remove-TenantAllowBlockListItems

This cmdlet is available only in the cloud-based service.

Use the Remove-TenantAllowBlockListItems cmdlet to remove entries from the Tenant Allow/Block List in the Microsoft Defender portal.

For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.

Syntax

Entries

Remove-TenantAllowBlockListItems
    -Entries <String[]>
    -ListType <ListType>
    [-ListSubType <ListSubType>]
    [-OutputJson]
    [<CommonParameters>]

Ids

Remove-TenantAllowBlockListItems
    -Ids <String[]>
    -ListType <ListType>
    [-ListSubType <ListSubType>]
    [-OutputJson]
    [<CommonParameters>]

Description

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.

Examples

Example 1

Remove-TenantAllowBlockListItems -ListType Url -Ids "RgAAAAAI8gSyI_NmQqzeh-HXJBywBwCqfQNJY8hBTbdlKFkv6BcUAAAl_QCZAACqfQNJY8hBTbdlKFkv6BcUAAAl_oSPAAAA0l"

This example removes the specified URL entry from the Tenant Allow/Block List.

Example 2

Remove-TenantAllowBlockListItems -ListType Url -ListSubType AdvancedDelivery -Entries *.fabrikam.com

This example removes the URL allow entry for the specified non-Microsoft phishing simulation URL. For more information, see Configure the advanced delivery policy for non-Microsoft phishing simulations and email delivery to SecOps mailboxes.

Parameters

-Entries

Applicable: Exchange Online, Security & Compliance, Exchange Online Protection

The Entries parameter specifies the entries that you want to remove based on the ListType parameter value. Valid values are:

  • FileHash: The exact SHA256 file hash value.
  • Sender domains and email addresses: The exact ___domain or email address value.
  • Url: The exact URL value.
  • IP: IPv6 addresses only. Single IPv6 addresses in colon-hexadecimal or zero-compression format or CIDR IPv6 ranges from 1 to 128.

This value is shown in the Value property of the entry in the output of the Get-TenantAllowBlockListItems cmdlet.

You can't mix value types (sender, URL, file, or IP address) or allow and block actions in the same command.

You can't use this parameter with the Ids parameter.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Entries
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Ids

Applicable: Exchange Online, Security & Compliance, Exchange Online Protection

The Ids parameter specifies the entries that you want to remove. This value is shown in the Identity property in the output of the Get-TenantAllowBlockListItems cmdlet.

An example value for this parameter is RgAAAAAI8gSyI_NmQqzeh-HXJBywBwCqfQNJY8hBTbdlKFkv6BcUAAAl_QCZAACqfQNJY8hBTbdlKFkv6BcUAAAl_oSPAAAA0.

You can't use this parameter with the Entries parameter.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Ids
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ListSubType

Applicable: Exchange Online, Security & Compliance, Exchange Online Protection

The ListSubType specifies further specifies the type of entry that you want to remove. Valid values are:

  • AdvancedDelivery: Use this value for phishing simulation URLs.
  • Tenant: This value is the default.

Parameter properties

Type:ListSubType
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ListType

Applicable: Exchange Online, Security & Compliance, Exchange Online Protection

The ListType parameter specifies the type of entry that you want to remove. Valid values are:

  • FileHash
  • Sender
  • Url
  • IP

Parameter properties

Type:ListType
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-OutputJson

Applicable: Exchange Online, Security & Compliance, Exchange Online Protection

The OutputJson switch specifies whether to return all entries in a single JSON value. You don't need to specify a value with this switch.

You use this switch to prevent the command from halting on the first entry that contains a syntax error.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.