Delivery Management-DL-Unified group

Glenn Maxwell 10,146 Reputation points
2021-01-29T16:03:13.497+00:00

Hi All
i am using exchange 2010 hybrid environment, i have DL's in onprem/online. i have also unified groups in exchange online. i want to know the Delivery Management status of these DLs(only senders inside my org/senders inside and outside of my org) and unified groups.
i have csv file in below format for DLs and unified groups, how can i import the csv file and know the status. how can i achieve this for unified groups as well.

names
dl1@Company portal .com
dl2@Company portal .om

Microsoft Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
587 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,199 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,360 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 95,751 Reputation points MVP
    2021-01-30T18:23:25.907+00:00

    I always forget it's only "direct copy paste" with you... :D Try this:

    Import-CSV .\test1.csv | % { Get-DistributionGroup $_.Name | Select-Object Name,RequireSenderAuthenticationEnabled } | Export-Csv  -Path C:\temp\output.csv -NoTypeInformation
    

    where you have a blabla.csv with a column "Name" to designate the group.

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Glenn Maxwell 10,146 Reputation points
    2021-01-29T17:35:30.827+00:00

    I want to try something like this for DLs but not sure. and how to do it for unified groups

    d1@Company portal .com
    d2@Company portal .com

    $DL = Get-Content C:\temp\dls.csv
    $DL |ForEach {Get-DistributionGroup | FT Name, RequireSenderAuthenticationEnabled} | Export-Csv -Path C:\Temp\output.csv -NoTypeInformation

    0 comments No comments

  2. Vasil Michev 95,751 Reputation points MVP
    2021-01-29T19:03:19.73+00:00

    Just replace Get-DistributionGroup with Get-UnifiedGroup.

    0 comments No comments

  3. Glenn Maxwell 10,146 Reputation points
    2021-01-29T22:20:42.447+00:00

    When i use the below syntax i am getting output but its not in readable format

    $DL = Get-Content C:\temp\dls.csv
    $DL |ForEach {Get-DistributionGroup | FT Name, RequireSenderAuthenticationEnabled} | Export-Csv -Path C:\Temp\output.csv -NoTypeInformation

    For mail enabled security group what is the syntax to get the same information.


  4. Glenn Maxwell 10,146 Reputation points
    2021-01-30T16:04:02.247+00:00

    i tried the below syntax as well but i am not getting output

    Import-csv -Path C:\Temp\users.csv |ForEach {Get-DistributionGroup | Select-Object Name,RequireSenderAuthenticationEnabled} | Export-Csv  -Path C:\temp\output.csv -NoTypeInformation
    
    0 comments No comments