Share via

Dynamic Distribution List- Exchange Powershell

Anonymous
2024-04-03T08:24:36+00:00

HI

I have a question regarding Dynamic Distribution List in Exchange online.

Membership of Dynamic Distribution List is set by Exchange Powershell. I can see the output from the portal which is shown like this:

((((((((((((((((((((((((RecipientType -eq 'UserMailbox') -and (-not(Name -like 'SystemMailbox{*')))) -and (-not(Name -like 'CAS_{*')))) -and (-not(Name -like 'purchaseledger*')))) -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')))) -and (-not(RecipientTypeDetailsValue -eq 'AuxAuditLogMailbox')))) -and (-not(RecipientTypeDetailsValue -eq 'SupervisoryReviewPolicyMailbox')))) -and (-not(RecipientTypeDetailsValue -eq 'GuestMailUser')))) -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')) -and (-not(RecipientTypeDetailsValue -eq 'AuxAuditLogMailbox')) -and (-not(RecipientTypeDetailsValue -eq 'SupervisoryReviewPolicyMailbox')))

I want to add one more parameter "-and (-not(RecipientType -eq 'MailContact'))"

Can someone tell me how to run this script ? I need steps

Thanks

Regards

Microsoft 365 and Office | Install, redeem, activate | Other | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2024-04-03T13:06:19+00:00

    Hi Amit

    Thanks for your message.

    This link is not relevant to my question.

    Regards

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-04-03T12:59:03+00:00

    Hi Hassan,

    Please check out this link -->

    Exchange Online https://learn.microsoft.com/en-us/exchange/exchange-online#help-for-microsoft-365-admins

    Let us know if that helps. -Amit

    Was this answer helpful?

    0 comments No comments
  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more