ДС
Get-DynamicDistributionGroup "all.u" | Set-DynamicDistributionGroup -RecipientFilter {((RecipientType -eq 'UserMailbox') -or (RecipientType -eq 'MailUser')) -and (-not(CustomAttribute1 -like "VIP*"))}, что в Recipient FIlter в PS дает такую строчку:
((((((RecipientType -eq 'UserMailbox') -or (RecipientType -eq 'MailUser'))) -and
(-not(CustomAttribute1 -like 'VIP*')))) -and (-not(Name -like 'SystemMailbox{*')) -and
(-not(Name -like 'CAS_{*')) -and (-not(RecipientTypeDetailsValue -eq 'MailboxPlan')) -and
(-not(RecipientTypeDetailsValue -eq 'DiscoveryMailbox')) -and (-not(RecipientTypeDetailsValue
-eq 'PublicFolderMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'ArbitrationMailbox')) -and
(-not(RecipientTypeDetailsValue -eq 'AuditLogMailbox')))