Forum Discussion
About Command Return Values
When I ran the following command in PowerShell, it used to return an `Object` type,
but recently it has started returning a `System.Collections.ArrayList` type.
Does anyone know why this is happening?
------------------------------------------------------------------
$dg = Get-DistributionGroup -Identity "Group Name"
$dg.AcceptMessagesOnlyFromSendersOrMembers.GetType().FullName
1 Reply
Hello, daisuke1
In Exchange Online PowerShell, some multi-valued properties may be returned as serialized .NET collection types such as System.Collections.ArrayList.
In the Exchange Online environment, use the following command!
Get-DistributionGroup <Group Name>
-IncludeAcceptMessagesOnlyFromSendersOrMembersWithDisplayNames |
fl Name,AcceptMessagesOnlyFromSendersOrMembersWithDisplayNames
This parameter is available only in the cloud-based service.
Best Regards,
TaeYoun