Are wildcards supported in Exchange Online PowerShell cmdlets? I want to create a new Address List which filters by Mail address but cannot get it to work.
The following command yields no results even though there are users with such a mail address:
Get-Recipient -Filter {(Alias -ne $null) -and (PrimarySmtpAddress -like '*@domain.com')}
When I type in the whole mail address by hand it returns a result, so it is clear that the wildcard filter does not work.
So are wildcards not supported? If that is the case, then why does the following command return results when filtering mail contacts?
Get-Recipient -Filter {(Alias- ne $null) -and (ExternalEmailAddress -like '*@domain.com')}