Fetch list of AcceptMessageFrom from all Distribution Lists RRS feed

  • Question

  • Hi,

    I have two requirements,


    I want to fetch the list of members of AcceptMessagesOnlyFrom from all Distribution Lists in my organization.

    I am looking for single script which will give me these details.


    I want to know that how many of Distribution Lists have Enabled Require that all senders are authenticated  in my organization.

    kindly help,Thanks in advance!!

    Thursday, August 29, 2019 6:11 AM

All replies

  • Hello,

    Please find below command for your 1st requirement 

    Get-DistributionGroup -ResultSize unlimited |where{$_.AcceptMessagesOnlyFrom -ne "null"} >c:\temp\test.txt

    Please find below command for your 2nd requirement 

    Get-DistributionGroup -ResultSize unlimited |where{$_.RequireSenderAuthenticationEnabled -eq "true"} >c:\temp\test.txt

    It will extract report in c:\temp\test.txt


    Thursday, August 29, 2019 6:59 AM
  • Hi,

    Was your issue resolved?

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

    If no, please reply and tell us the current situation in order to provide further help.

    Best Regards,


    Just do it.

    Friday, September 6, 2019 11:41 AM