none
Distribution group related.

    Question

  • A distribution group created in AD is synced in cloud. We have restricted the users who can send emails to those DLs. Now, we need to pull the information of the users who can send email to those DLs. I can see them at delivery management in office 365. But, there are lots of DLs needs to be checked for the same. Can someone please send the PS command for the same?
    Thursday, May 23, 2019 8:21 AM

Answers

  • Get-DistributionGroup

    https://docs.microsoft.com/en-us/powershell/module/exchange/users-and-groups/get-distributiongroup?view=exchange-ps

    The property you're interested in (which you can find from the Set-DistributionGroup documentation) is AcceptMessagesOnlyFrom.

    https://docs.microsoft.com/en-us/powershell/module/exchange/users-and-groups/set-distributiongroup?view=exchange-ps

    In the future, please try checking the basic documentation before posting here.


    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
    Celebrating 20 years of providing Exchange peer support!

    Thursday, May 23, 2019 7:38 PM
    Moderator

All replies

  • Get-DistributionGroup

    https://docs.microsoft.com/en-us/powershell/module/exchange/users-and-groups/get-distributiongroup?view=exchange-ps

    The property you're interested in (which you can find from the Set-DistributionGroup documentation) is AcceptMessagesOnlyFrom.

    https://docs.microsoft.com/en-us/powershell/module/exchange/users-and-groups/set-distributiongroup?view=exchange-ps

    In the future, please try checking the basic documentation before posting here.


    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
    Celebrating 20 years of providing Exchange peer support!

    Thursday, May 23, 2019 7:38 PM
    Moderator
  • Get-DistributionGroup

    https://docs.microsoft.com/en-us/powershell/module/exchange/users-and-groups/get-distributiongroup?view=exchange-ps

    The property you're interested in (which you can find from the Set-DistributionGroup documentation) is AcceptMessagesOnlyFrom.

    https://docs.microsoft.com/en-us/powershell/module/exchange/users-and-groups/set-distributiongroup?view=exchange-ps

    In the future, please try checking the basic documentation before posting here.


    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
    Celebrating 20 years of providing Exchange peer support!

    Agree with Ed, it should be like the following:

    Get-DistributionGroup | fl name, AcceptMessagesOnlyFrom


    Regards,

    Manu Meng


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Friday, May 24, 2019 5:59 AM
    Moderator
  • Just checking in to see if above information was helpful. Please let us know if you would like further assistance.

    Regards, 

    Manu Meng


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Click here to learn more. Visit the dedicated forum to shareexplore and talk to experts about Microsoft Teams.

    Wednesday, May 29, 2019 9:56 AM
    Moderator