Why complicate things?
(Office -like '*Remote, Ireland*' -or Office -like '*Dublin, Ireland*')
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi All
We have office in Ireland. for few users office location in Active Directory is given are Dublin, Ireland and for few users it is given as Remote, Ireland
I want to export the users with the office locations Dublin, Ireland & Remote, Ireland ,which of the below syntax is correct. i am not sure of Remote, Ireland
(Office -like '*Remote*' -and Office -like 'Ireland*') -or (Office -like '*Dublin, Ireland*')
or
(Office -like '*Remote*' -and Office -like '*Ireland*') -or (Office -like '*Dublin, Ireland*')
Answer accepted by question author
Why complicate things?
(Office -like '*Remote, Ireland*' -or Office -like '*Dublin, Ireland*')
lets say in office location tomorrow if it is Remote Ireland ABC, or ABC Remote Ireland or anything. i want to make sure my query pulls the words Remote and Ireland from office location.