CmdID / PowerShell / Cmdlets / Set
Set-TenantAllowBlockListItems
Use the Set-TenantAllowBlockListItems cmdlet to modify entries in the Tenant Allow/Block List in the Microsoft Defender portal. Exchange PowerShell reference
From the Exchange PowerShell reference 11 parameters Its page in the reference
Parameters
-EntriesThe Entries parameter specifies the entries that you want to modify based on the ListType parameter value.-IdsThe Ids parameter specifies the entries that you want to modify.-ListTypeThe ListType parameter specifies the type of entry that you want to modify.-NoExpirationThe NoExpiration switch specifies that the entry should never expire.-AllowThe Allow switch specifies that you're modifying an allow entry.-BlockThe Block switch specifies that you're modifying a block entry.-ExpirationDateThe ExpirationDate parameter filters the results by expiration date in Coordinated Universal Time (UTC).-ListSubTypeThe ListSubType parameter further specifies the entry that you want to modify.-NotesThe Notes parameters specifies additional information about the object.-OutputJsonThe OutputJson switch specifies whether to return all entries in a single JSON value.-RemoveAfterThe RemoveAfter parameter enables the Remove on > 45 days after last used date feature for an allow entry.