Office-docs-powershell: Filterable properties for the filter parameter

Created on 10 Feb 2020  Â·  5Comments  Â·  Source: MicrosoftDocs/office-docs-powershell

Text string properties that accept wildcard characters require the -like operator (for example, "Property -like '*abc'"):

Depends where environment is based the object:

-In cloud-based environments, you can't use a wildcard as the first character. For example, 'Sales' is allowed, but 'Sales' isn't allowed.

-In on-premises Exchange, wildcards are valid only as the first or last character. For example, 'Sales*' or 'Sales' are allowed, but 'Sales' isn't allowed.

Could we check add to the document?


Detalhes do Documento

⚠ Não edite esta secção. É necessário para a ligação de problemas docs.microsoft.com ➟ GitHub.

Microsoft submitter exchange

All 5 comments

RecipientPreviewFilter

@officedocsbot assign @yogkumgit

Hi @BlasMS, thank you for your feedback.

I have tried and I saw the same behavior in the cloud and on-premises, with -Filter and -RecipientPreviewFilter. You can use wildcard as the first and last character, not in the middle.

I think there is no reason to have different behavior as they are OPath filters.

@dariomws306 Thank you very much for the contribution and updating the documentation with PR. @BlasMS Hope this update is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

Hi @dariomws306 In the middle returns nothing.
@yogkumgit @dariomws306 Thanks ;)

Was this page helpful?
0 / 5 - 0 ratings