Search code examples
powershellactive-directoryexchange-serverexchange-server-2010

Get Distributionlist by GUID


I'm have to get a Exchange Distributionlist by using powershell. The only thing I know about the list is the GUID. So I've tried following:

function GroupGetName([string]$ADGuid)
{
$DISGR = Get-DistributionGroup -filter { Guid -like $ADGuid}
$DISGR
}

But it does not work (I think "Guid" is a internal name from powershell)

Does any one know how to solve it?


Solution

  • Get-DistributionGroup $ADGuid should be sufficient. Per the docs (http://technet.microsoft.com/en-us/library/bb124755.aspx), the objectGuid is a valid input for the Identity parameter.