Scott
asked on
Office 365 powershell help
Creating new dynamic distribution groups in office 365. Here is an example of the command that used to work with on-prem: New-DynamicDistributionGro up -Name "All IT" -RecipientFilter {(RecipientType -eq 'UserMailbox') -and (Title -like '*Tech*')
BUT you can no longer do leading wildcards in o365. I tried to use (Title -contains 'Tech*'), but I receive an error that -contains is not a valid operator. Any ideas of what I could use? I know -contains is an operator, but obviously I am doing something wrong.
BUT you can no longer do leading wildcards in o365. I tried to use (Title -contains 'Tech*'), but I receive an error that -contains is not a valid operator. Any ideas of what I could use? I know -contains is an operator, but obviously I am doing something wrong.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
If nothing else, you can certainly break the query down to multiple statements using the -like operator, without leading wildcard.