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?
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.