none
I need a powershell command that will give me a list of all DLs with the DL name and ManagedBy parameters only RRS feed

  • Question

  • If I do Get-DistributionGroup | FL it gives me too much detail. I only need the DL name and the "ManagedBy" parameters. Any ideas?

    Wednesday, November 17, 2010 2:56 PM

Answers

  • Get-DistributionGroup  | Select-Object Name,ManagedBy

    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
    Wednesday, November 17, 2010 3:02 PM

All replies

  • Get-DistributionGroup  | Select-Object Name,ManagedBy

    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
    Wednesday, November 17, 2010 3:02 PM
  • Worked like a charm.

     

    Thanks!


    ExchangeGuru
    Wednesday, November 17, 2010 3:47 PM
  • Can anyone tell me if I can pull out extended rights and permissions like sendas and send on behalf for Distribution Lists? I'm using the following command but I need to pull those properties as well. 

    Get-DistributionGroup -resultsize unlimited | select displayname, primarysmtpaddress, whencreated,
    whenchanged | export-csv

    Friday, August 15, 2014 8:35 PM